#AFAF39#AFAF39

#AFAF39 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.2% C 0.137 H 109.4°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#AFAF39
RGBrgb(175, 175, 57)
HSLhsl(60, 51%, 45%)
HSVhsv(60, 67%, 69%)
CMYKcmyk(0%, 0%, 67.4%, 31.4%)
CIE-LABlab(69.52, -14.56, 57.74)
CIE-LCHlch(69.52, 59.54, 104.15°)
OKLaboklab(73.22% -0.0455 0.1294)
OKLCHoklch(73.22% 0.137 109.4)
XYZxyz(33.7488, 40.0703, 9.8267)
Luminance0.4007 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF39 #3939AF
analogous
#AF7439 #AFAF39 #74AF39
triadic
#AFAF39 #39AFAF #AF39AF
tetradic
#AFAF39 #39AF74 #3939AF #AF3974
square
#AFAF39 #39AF74 #3939AF #AF3974
split-complementary
#AFAF39 #3974AF #7439AF
monochromatic
#53531B #81812A #AFAF39 #CACA5B #D9D98A

Accessibility & contrast

On white

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

On black

9.01
#AFAF39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF39
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF39#FFFFFF#000000##000000
##AFAF391.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaf39;
/* rgb */ color: rgb(175, 175, 57);
/* oklch */ color: oklch(73.2% 0.137 109.4);
Tailwind
colors: {
  custom: {
    50: '#cac676',
    500: '#afaf39',
    950: '#000000',
  },
}
SCSS
$custom: #afaf39;
$custom-light: #cac676;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf39",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 57
  },
  "hsl": {
    "h": 60,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.73223,
    "c": 0.13714,
    "h": 109.4
  },
  "luminance": 0.40069
}

Semantic roles & 50–950 ramp

primary
#AFAF39
secondary
#8181C3
accent
#4DDA4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFAF39

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

Preview Lab → · Contrast checker → · Palette generator →

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