#AFA42B#AFA42B

#AFA42B is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.135 H 104.0°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA42B
RGBrgb(175, 164, 43)
HSLhsl(55, 61%, 43%)
HSVhsv(55, 75%, 69%)
CMYKcmyk(0%, 6.3%, 75.4%, 31.4%)
CIE-LABlab(66.40, -9.54, 59.90)
CIE-LCHlch(66.40, 60.66, 99.05°)
OKLaboklab(70.71% -0.0328 0.1315)
OKLCHoklch(70.71% 0.135 104)
XYZxyz(31.3921, 35.8406, 7.5494)
Luminance0.3584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA42B #2B36AF
analogous
#AF622B #AFA42B #78AF2B
triadic
#AFA42B #2BAFA4 #A42BAF
tetradic
#AFA42B #2BAF62 #2B36AF #AF2B78
square
#AFA42B #2BAF62 #2B36AF #AF2B78
split-complementary
#AFA42B #2B78AF #622BAF
monochromatic
#4D4813 #7E761F #AFA42B #D1C646 #DED577

Accessibility & contrast

On white

2.57
#AFA42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AFA42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA42B
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA42B#FFFFFF#000000##000000
##AFA42B1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E12
Deuteranopia (green-blind)
#B7A434
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa42b;
/* rgb */ color: rgb(175, 164, 43);
/* oklch */ color: oklch(70.7% 0.135 104.0);
Tailwind
colors: {
  custom: {
    50: '#cbbe6e',
    500: '#afa42b',
    950: '#000000',
  },
}
SCSS
$custom: #afa42b;
$custom-light: #cbbe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa42b",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 55,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.70706,
    "c": 0.13548,
    "h": 104
  },
  "luminance": 0.35839
}

Semantic roles & 50–950 ramp

primary
#AFA42B
secondary
#7078C5
accent
#51E444
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA42B

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

Preview Lab → · Contrast checker → · Palette generator →

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