#ABBA31#ABBA31

#ABBA31 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.3% C 0.155 H 115.7°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#ABBA31
RGBrgb(171, 186, 49)
HSLhsl(67, 58%, 46%)
HSVhsv(67, 74%, 73%)
CMYKcmyk(8.1%, 0%, 73.7%, 27.1%)
CIE-LABlab(72.23, -22.22, 63.23)
CIE-LCHlch(72.23, 67.02, 109.36°)
OKLaboklab(75.3% -0.0674 0.1397)
OKLCHoklch(75.3% 0.155 115.7)
XYZxyz(34.9088, 43.9980, 9.5586)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABBA31 #4031BA
analogous
#BA8431 #ABBA31 #66BA31
triadic
#ABBA31 #31ABBA #BA31AB
tetradic
#ABBA31 #31BA84 #4031BA #BA3166
square
#ABBA31 #31BA84 #4031BA #BA3166
split-complementary
#ABBA31 #3166BA #8431BA
monochromatic
#525917 #7E8A24 #ABBA31 #C5D256 #D5DF86

Accessibility & contrast

On white

2.14
#ABBA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#ABBA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABBA31
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABBA31#FFFFFF#000000##000000
##ABBA311.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B014
Deuteranopia (green-blind)
#C6B23D
Tritanopia (blue-blind)
#B6AFA0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #abba31;
/* rgb */ color: rgb(171, 186, 49);
/* oklch */ color: oklch(75.3% 0.155 115.7);
Tailwind
colors: {
  custom: {
    50: '#c7ce73',
    500: '#abba31',
    950: '#000000',
  },
}
SCSS
$custom: #abba31;
$custom-light: #c7ce73;
$custom-dark: #000000;
JSON
{
  "hex": "#abba31",
  "rgb": {
    "r": 171,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 66.569,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75297,
    "c": 0.15512,
    "h": 115.7
  },
  "luminance": 0.43997
}

Semantic roles & 50–950 ramp

primary
#ABBA31
secondary
#867EC9
accent
#46E257
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #ABBA31

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

Preview Lab → · Contrast checker → · Palette generator →

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