#AFB42A#AFB42A

#AFB42A is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.2% C 0.151 H 111.7°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#AFB42A
RGBrgb(175, 180, 42)
HSLhsl(62, 62%, 44%)
HSVhsv(62, 77%, 71%)
CMYKcmyk(2.8%, 0%, 76.7%, 29.4%)
CIE-LABlab(70.82, -17.83, 64.31)
CIE-LCHlch(70.82, 66.74, 105.49°)
OKLaboklab(74.23% -0.056 0.1407)
OKLCHoklch(74.23% 0.151 111.7)
XYZxyz(34.4196, 41.9245, 8.4692)
Luminance0.4192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB42A #2F2AB4
analogous
#B4742A #AFB42A #6AB42A
triadic
#AFB42A #2AAFB4 #B42AAF
tetradic
#AFB42A #2AB474 #2F2AB4 #B42A6A
square
#AFB42A #2AB474 #2F2AB4 #B42A6A
split-complementary
#AFB42A #2A6AB4 #742AB4
monochromatic
#4F5113 #7F821E #AFB42A #CFD447 #DCE079

Accessibility & contrast

On white

2.24
#AFB42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#AFB42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB42A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB42A#FFFFFF#000000##000000
##AFB42A1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC02
Deuteranopia (green-blind)
#C3AF36
Tritanopia (blue-blind)
#BBA99A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb42a;
/* rgb */ color: rgb(175, 180, 42);
/* oklch */ color: oklch(74.2% 0.151 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6f',
    500: '#afb42a',
    950: '#000000',
  },
}
SCSS
$custom: #afb42a;
$custom-light: #cbca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb42a",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 62.174,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74233,
    "c": 0.15139,
    "h": 111.7
  },
  "luminance": 0.41924
}

Semantic roles & 50–950 ramp

primary
#AFB42A
secondary
#7572C8
accent
#43E548
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB42A

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

Preview Lab → · Contrast checker → · Palette generator →

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