#AFAF2A#AFAF2A

#AFAF2A is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.146 H 109.5°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#AFAF2A
RGBrgb(175, 175, 42)
HSLhsl(60, 61%, 43%)
HSVhsv(60, 76%, 69%)
CMYKcmyk(0%, 0%, 76%, 31.4%)
CIE-LABlab(69.43, -15.29, 63.04)
CIE-LCHlch(69.43, 64.87, 103.63°)
OKLaboklab(73.12% -0.0489 0.138)
OKLCHoklch(73.12% 0.146 109.5)
XYZxyz(33.4283, 39.9421, 8.1387)
Luminance0.3994 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF2A #2A2AAF
analogous
#AF6C2A #AFAF2A #6CAF2A
triadic
#AFAF2A #2AAFAF #AF2AAF
tetradic
#AFAF2A #2AAF6C #2A2AAF #AF2A6C
square
#AFAF2A #2AAF6C #2A2AAF #AF2A6C
split-complementary
#AFAF2A #2A6CAF #6C2AAF
monochromatic
#4C4C12 #7E7E1E #AFAF2A #D2D244 #DEDE75

Accessibility & contrast

On white

2.34
#AFAF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#AFAF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF2A
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF2A#FFFFFF#000000##000000
##AFAF2A1.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA707
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#BCA496
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf2a;
/* rgb */ color: rgb(175, 175, 42);
/* oklch */ color: oklch(73.1% 0.146 109.5);
Tailwind
colors: {
  custom: {
    50: '#cbc66f',
    500: '#afaf2a',
    950: '#000000',
  },
}
SCSS
$custom: #afaf2a;
$custom-light: #cbc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf2a",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 60,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.73121,
    "c": 0.14637,
    "h": 109.5
  },
  "luminance": 0.39941
}

Semantic roles & 50–950 ramp

primary
#AFAF2A
secondary
#6F6FC6
accent
#43E443
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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