#AFAF2B#AFAF2B

#AFAF2B 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#AFAF2B
RGBrgb(175, 175, 43)
HSLhsl(60, 61%, 43%)
HSVhsv(60, 75%, 69%)
CMYKcmyk(0%, 0%, 75.4%, 31.4%)
CIE-LABlab(69.43, -15.25, 62.72)
CIE-LCHlch(69.43, 64.55, 103.66°)
OKLaboklab(73.13% -0.0487 0.1375)
OKLCHoklch(73.13% 0.146 109.5)
XYZxyz(33.4465, 39.9493, 8.2342)
Luminance0.3995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF2B #2B2BAF
analogous
#AF6D2B #AFAF2B #6DAF2B
triadic
#AFAF2B #2BAFAF #AF2BAF
tetradic
#AFAF2B #2BAF6D #2B2BAF #AF2B6D
square
#AFAF2B #2BAF6D #2B2BAF #AF2B6D
split-complementary
#AFAF2B #2B6DAF #6D2BAF
monochromatic
#4D4D13 #7E7E1F #AFAF2B #D1D146 #DEDE77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAF2B#FFFFFF#000000##000000
##AFAF2B1.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)
#BDA70A
Deuteranopia (green-blind)
#BFAB36
Tritanopia (blue-blind)
#BCA496
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf2b;
/* rgb */ color: rgb(175, 175, 43);
/* oklch */ color: oklch(73.1% 0.146 109.5);
Tailwind
colors: {
  custom: {
    50: '#cbc66f',
    500: '#afaf2b',
    950: '#000000',
  },
}
SCSS
$custom: #afaf2b;
$custom-light: #cbc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf2b",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 60,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73127,
    "c": 0.14583,
    "h": 109.5
  },
  "luminance": 0.39948
}

Semantic roles & 50–950 ramp

primary
#AFAF2B
secondary
#7070C5
accent
#44E444
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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