#ABB31C#ABB31C

#ABB31C is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.6% C 0.158 H 113.0°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#ABB31C
RGBrgb(171, 179, 28)
HSLhsl(63, 73%, 41%)
HSVhsv(63, 84%, 70%)
CMYKcmyk(4.5%, 0%, 84.4%, 29.8%)
CIE-LABlab(70.16, -19.53, 67.44)
CIE-LCHlch(70.16, 70.21, 106.15°)
OKLaboklab(73.61% -0.0615 0.1451)
OKLCHoklch(73.61% 0.158 113)
XYZxyz(33.1254, 40.9828, 7.2639)
Luminance0.4098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABB31C #241CB3
analogous
#B36F1C #ABB31C #5FB31C
triadic
#ABB31C #1CABB3 #B31CAB
tetradic
#ABB31C #1CB36F #241CB3 #B31C5F
square
#ABB31C #1CB36F #241CB3 #B31C5F
split-complementary
#ABB31C #1C5FB3 #6F1CB3
monochromatic
#46490B #787E14 #ABB31C #D5DE2E #E0E763

Accessibility & contrast

On white

2.28
#ABB31C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#ABB31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABB31C
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABB31C#FFFFFF#000000##000000
##ABB31C1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C1AD2D
Tritanopia (blue-blind)
#B7A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #abb31c;
/* rgb */ color: rgb(171, 179, 28);
/* oklch */ color: oklch(73.6% 0.158 113.0);
Tailwind
colors: {
  custom: {
    50: '#c8c96a',
    500: '#abb31c',
    950: '#000000',
  },
}
SCSS
$custom: #abb31c;
$custom-light: #c8c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#abb31c",
  "rgb": {
    "r": 171,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 63.179,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.73612,
    "c": 0.15758,
    "h": 113
  },
  "luminance": 0.40982
}

Semantic roles & 50–950 ramp

primary
#ABB31C
secondary
#655FCB
accent
#38F042
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #ABB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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