#AFB32A#AFB32A

#AFB32A is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.0% C 0.150 H 111.3°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFB32A
RGBrgb(175, 179, 42)
HSLhsl(62, 62%, 43%)
HSVhsv(62, 77%, 70%)
CMYKcmyk(2.2%, 0%, 76.5%, 29.8%)
CIE-LABlab(70.54, -17.32, 64.06)
CIE-LCHlch(70.54, 66.36, 105.13°)
OKLaboklab(74.01% -0.0546 0.1401)
OKLCHoklch(74.01% 0.15 111.3)
XYZxyz(34.2184, 41.5222, 8.4021)
Luminance0.4152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB32A #2E2AB3
analogous
#B3722A #AFB32A #6AB32A
triadic
#AFB32A #2AAFB3 #B32AAF
tetradic
#AFB32A #2AB372 #2E2AB3 #B32A6A
square
#AFB32A #2AB372 #2E2AB3 #B32A6A
split-complementary
#AFB32A #2A6AB3 #722AB3
monochromatic
#4E5013 #7F811E #AFB32A #D0D446 #DCDF78

Accessibility & contrast

On white

2.26
#AFB32A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFB32A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB32A
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB32A#FFFFFF#000000##000000
##AFB32A1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB03
Deuteranopia (green-blind)
#C2AE36
Tritanopia (blue-blind)
#BBA899
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb32a;
/* rgb */ color: rgb(175, 179, 42);
/* oklch */ color: oklch(74.0% 0.150 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96f',
    500: '#afb32a',
    950: '#000000',
  },
}
SCSS
$custom: #afb32a;
$custom-light: #cbc96f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb32a",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 42
  },
  "hsl": {
    "h": 61.752,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.7401,
    "c": 0.15037,
    "h": 111.3
  },
  "luminance": 0.41521
}

Semantic roles & 50–950 ramp

primary
#AFB32A
secondary
#7472C7
accent
#43E547
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB32A

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

Preview Lab → · Contrast checker → · Palette generator →

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