#AFA22D#AFA22D

#AFA22D is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.3% C 0.133 H 102.8°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AFA22D
RGBrgb(175, 162, 45)
HSLhsl(54, 59%, 43%)
HSVhsv(54, 74%, 69%)
CMYKcmyk(0%, 7.4%, 74.3%, 31.4%)
CIE-LABlab(65.86, -8.40, 58.69)
CIE-LCHlch(65.86, 59.29, 98.15°)
OKLaboklab(70.28% -0.0293 0.1293)
OKLCHoklch(70.28% 0.133 102.8)
XYZxyz(31.0746, 35.1454, 7.6290)
Luminance0.3514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA22D #2D3AAF
analogous
#AF612D #AFA22D #7BAF2D
triadic
#AFA22D #2DAFA2 #A22DAF
tetradic
#AFA22D #2DAF61 #2D3AAF #AF2D7B
square
#AFA22D #2DAF61 #2D3AAF #AF2D7B
split-complementary
#AFA22D #2D7BAF #612DAF
monochromatic
#4E4814 #7E7520 #AFA22D #D0C349 #DDD37A

Accessibility & contrast

On white

2.62
#AFA22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#AFA22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA22D
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA22D#FFFFFF#000000##000000
##AFA22D1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D17
Deuteranopia (green-blind)
#B5A335
Tritanopia (blue-blind)
#BC968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa22d;
/* rgb */ color: rgb(175, 162, 45);
/* oklch */ color: oklch(70.3% 0.133 102.8);
Tailwind
colors: {
  custom: {
    50: '#cbbd6f',
    500: '#afa22d',
    950: '#000000',
  },
}
SCSS
$custom: #afa22d;
$custom-light: #cbbd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa22d",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 45
  },
  "hsl": {
    "h": 54,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.70284,
    "c": 0.13255,
    "h": 102.8
  },
  "luminance": 0.35144
}

Semantic roles & 50–950 ramp

primary
#AFA22D
secondary
#737BC5
accent
#55E246
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA22D

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

Preview Lab → · Contrast checker → · Palette generator →

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