#AFA431#AFA431

#AFA431 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.7% C 0.132 H 103.8°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#AFA431
RGBrgb(175, 164, 49)
HSLhsl(55, 56%, 44%)
HSVhsv(55, 72%, 69%)
CMYKcmyk(0%, 6.3%, 72%, 31.4%)
CIE-LABlab(66.43, -9.27, 57.76)
CIE-LCHlch(66.43, 58.50, 99.11°)
OKLaboklab(70.75% -0.0314 0.1281)
OKLCHoklch(70.75% 0.132 103.8)
XYZxyz(31.5104, 35.8879, 8.1724)
Luminance0.3589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA431 #313CAF
analogous
#AF6531 #AFA431 #7BAF31
triadic
#AFA431 #31AFA4 #A431AF
tetradic
#AFA431 #31AF65 #313CAF #AF317B
square
#AFA431 #31AF65 #313CAF #AF317B
split-complementary
#AFA431 #317BAF #6531AF
monochromatic
#4F4A16 #7F7724 #AFA431 #CEC34F #DBD37F

Accessibility & contrast

On white

2.57
#AFA431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#AFA431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA431
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA431#FFFFFF#000000##000000
##AFA4311.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1E
Deuteranopia (green-blind)
#B6A439
Tritanopia (blue-blind)
#BC998D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa431;
/* rgb */ color: rgb(175, 164, 49);
/* oklch */ color: oklch(70.7% 0.132 103.8);
Tailwind
colors: {
  custom: {
    50: '#cabe71',
    500: '#afa431',
    950: '#000000',
  },
}
SCSS
$custom: #afa431;
$custom-light: #cabe71;
$custom-dark: #000000;
JSON
{
  "hex": "#afa431",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 49
  },
  "hsl": {
    "h": 54.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70747,
    "c": 0.13184,
    "h": 103.8
  },
  "luminance": 0.35887
}

Semantic roles & 50–950 ramp

primary
#AFA431
secondary
#787EC4
accent
#55E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA431

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFA431 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva