#AFB31C#AFB31C

#AFB31C is a light, vivid yellow. Relative luminance 0.414; OKLCH L 73.9% C 0.156 H 111.3°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#AFB31C
RGBrgb(175, 179, 28)
HSLhsl(62, 73%, 41%)
HSVhsv(62, 84%, 70%)
CMYKcmyk(2.2%, 0%, 84.4%, 29.8%)
CIE-LABlab(70.48, -17.80, 67.84)
CIE-LCHlch(70.48, 70.13, 104.70°)
OKLaboklab(73.95% -0.0569 0.1458)
OKLCHoklch(73.95% 0.156 111.3)
XYZxyz(34.0102, 41.4389, 7.3053)
Luminance0.4144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB31C #201CB3
analogous
#B36B1C #AFB31C #64B31C
triadic
#AFB31C #1CAFB3 #B31CAF
tetradic
#AFB31C #1CB36B #201CB3 #B31C64
square
#AFB31C #1CB36B #201CB3 #B31C64
split-complementary
#AFB31C #1C64B3 #6B1CB3
monochromatic
#48490B #7B7E14 #AFB31C #DADE2E #E3E763

Accessibility & contrast

On white

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

On black

9.29
#AFB31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB31C
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB31C#FFFFFF#000000##000000
##AFB31C1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C3AE2C
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb31c;
/* rgb */ color: rgb(175, 179, 28);
/* oklch */ color: oklch(73.9% 0.156 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96a',
    500: '#afb31c',
    950: '#000000',
  },
}
SCSS
$custom: #afb31c;
$custom-light: #cbc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb31c",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 61.589,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.73945,
    "c": 0.15647,
    "h": 111.3
  },
  "luminance": 0.41438
}

Semantic roles & 50–950 ramp

primary
#AFB31C
secondary
#625FCB
accent
#38F03D
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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