#AF940B

#af940b ≈ Brass

  • yellow
  • Lightness: low
  • Saturation: strong
  • Warm

#af940b is a color from the yellow family, with low lightness and strong saturation. In the RGB model it is made of 68.63% red, 58.04% green and 4.31% blue; printed in CMYK it uses 0% cyan, 15.43% magenta, 93.71% yellow and 31.37% black. Its hue angle is 50.12°, with 88.17% saturation and 36.47% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and call-to-action buttons. Black text on this color reaches a contrast ratio of 7.06:1 (WCAG AAA). The closest named color is Brass (#b5a642), ΔE 6.78.

Description generated from the measured properties of this color.

Conversions of #af940b into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#999900
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.3032

Readable text 2.97:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 7.06:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #969696 ≈ 0.003% of males
Achromatomaly #a09577 ≈ 0.001% of males
Protanopia #a59100 ≈ 1.01% of males
Deuteranopia #ac991b ≈ 1.27% of males
Tritanopia #be877e ≈ 0.0001% of males
Protanomaly #a99200 ≈ 1.08% of males
Deuteranomaly #ad9716 ≈ 4.63% of males
Tritanomaly #b88c63 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-af940b {
  color: #af940b;
}
Background
.bg-af940b {
  background-color: #af940b;
  color: #000000;
}
Border
.border-af940b {
  border: 2px solid #af940b;
}
CSS variables
:root {
  --color-primary: #af940b;
  --color-primary-rgb: 175 148 11;
  --color-primary-hsl: 50 88% 36%;
}
Gradient
.gradient-af940b {
  background: linear-gradient(135deg, #af940b, #78af0b);
}
Colored shadow
.shadow-af940b {
  box-shadow: 0 8px 24px rgb(175 148 11 / 0.35);
}

Brass
#af940b  rgb(175, 148, 11)  hsl(50, 88%, 36%)  Brass
#0b26af  rgb(11, 38, 175)  hsl(230, 88%, 36%)  Zaffre
#0baf94  rgb(11, 175, 148)  hsl(170, 88%, 36%)  Jungle Green
#940baf  rgb(148, 11, 175)  hsl(290, 88%, 36%)  Dark Violet