#AFAF31#AFAF31

#AFAF31 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.142 H 109.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#AFAF31
RGBrgb(175, 175, 49)
HSLhsl(60, 56%, 44%)
HSVhsv(60, 72%, 69%)
CMYKcmyk(0%, 0%, 72%, 31.4%)
CIE-LABlab(69.47, -14.98, 60.70)
CIE-LCHlch(69.47, 62.52, 103.86°)
OKLaboklab(73.16% -0.0474 0.1343)
OKLCHoklch(73.16% 0.142 109.5)
XYZxyz(33.5647, 39.9967, 8.8572)
Luminance0.4000 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF31 #3131AF
analogous
#AF7031 #AFAF31 #70AF31
triadic
#AFAF31 #31AFAF #AF31AF
tetradic
#AFAF31 #31AF70 #3131AF #AF3170
square
#AFAF31 #31AF70 #3131AF #AF3170
split-complementary
#AFAF31 #3170AF #7031AF
monochromatic
#4F4F16 #7F7F24 #AFAF31 #CECE4F #DBDB7F

Accessibility & contrast

On white

2.33
#AFAF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#AFAF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF31
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF31#FFFFFF#000000##000000
##AFAF311.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA819
Deuteranopia (green-blind)
#BFAB3B
Tritanopia (blue-blind)
#BBA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf31;
/* rgb */ color: rgb(175, 175, 49);
/* oklch */ color: oklch(73.2% 0.142 109.5);
Tailwind
colors: {
  custom: {
    50: '#cac672',
    500: '#afaf31',
    950: '#000000',
  },
}
SCSS
$custom: #afaf31;
$custom-light: #cac672;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf31",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73164,
    "c": 0.14239,
    "h": 109.5
  },
  "luminance": 0.39996
}

Semantic roles & 50–950 ramp

primary
#AFAF31
secondary
#7878C4
accent
#48E048
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF31

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

Preview Lab → · Contrast checker → · Palette generator →

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