#ABB31B#ABB31B

#ABB31B 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#ABB31B
RGBrgb(171, 179, 27)
HSLhsl(63, 74%, 40%)
HSVhsv(63, 85%, 70%)
CMYKcmyk(4.5%, 0%, 84.9%, 29.8%)
CIE-LABlab(70.16, -19.56, 67.67)
CIE-LCHlch(70.16, 70.44, 106.12°)
OKLaboklab(73.61% -0.0617 0.1454)
OKLCHoklch(73.61% 0.158 113)
XYZxyz(33.1137, 40.9780, 7.2019)
Luminance0.4098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABB31B #231BB3
analogous
#B36F1B #ABB31B #5FB31B
triadic
#ABB31B #1BABB3 #B31BAB
tetradic
#ABB31B #1BB36F #231BB3 #B31B5F
square
#ABB31B #1BB36F #231BB3 #B31B5F
split-complementary
#ABB31B #1B5FB3 #6F1BB3
monochromatic
#45490B #787E13 #ABB31B #D6DF2C #E0E761

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABB31B#FFFFFF#000000##000000
##ABB31B1.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)
#C1AD2C
Tritanopia (blue-blind)
#B7A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #abb31b;
/* rgb */ color: rgb(171, 179, 27);
/* oklch */ color: oklch(73.6% 0.158 113.0);
Tailwind
colors: {
  custom: {
    50: '#c8c969',
    500: '#abb31b',
    950: '#000000',
  },
}
SCSS
$custom: #abb31b;
$custom-light: #c8c969;
$custom-dark: #000000;
JSON
{
  "hex": "#abb31b",
  "rgb": {
    "r": 171,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 63.158,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.73608,
    "c": 0.15793,
    "h": 113
  },
  "luminance": 0.40977
}

Semantic roles & 50–950 ramp

primary
#ABB31B
secondary
#645ECC
accent
#37F041
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #ABB31B

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

Preview Lab → · Contrast checker → · Palette generator →

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