#ABBA2A#ABBA2A

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

Color values

HEX#ABBA2A
RGBrgb(171, 186, 42)
HSLhsl(66, 63%, 45%)
HSVhsv(66, 77%, 73%)
CMYKcmyk(8.1%, 0%, 77.4%, 27.1%)
CIE-LABlab(72.19, -22.53, 65.45)
CIE-LCHlch(72.19, 69.22, 108.99°)
OKLaboklab(75.26% -0.0688 0.1432)
OKLCHoklch(75.26% 0.159 115.7)
XYZxyz(34.7724, 43.9435, 8.8402)
Luminance0.4394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABBA2A #392ABA
analogous
#BA812A #ABBA2A #63BA2A
triadic
#ABBA2A #2AABBA #BA2AAB
tetradic
#ABBA2A #2ABA81 #392ABA #BA2A63
square
#ABBA2A #2ABA81 #392ABA #BA2A63
split-complementary
#ABBA2A #2A63BA #812ABA
monochromatic
#4F5613 #7D881F #ABBA2A #C8D64B #D7E27D

Accessibility & contrast

On white

2.15
#ABBA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#ABBA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABBA2A
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABBA2A#FFFFFF#000000##000000
##ABBA2A1.002.159.799.79
#FFFFFF2.151.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C6B237
Tritanopia (blue-blind)
#B6AF9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #abba2a;
/* rgb */ color: rgb(171, 186, 42);
/* oklch */ color: oklch(75.3% 0.159 115.7);
Tailwind
colors: {
  custom: {
    50: '#c8ce70',
    500: '#abba2a',
    950: '#000000',
  },
}
SCSS
$custom: #abba2a;
$custom-light: #c8ce70;
$custom-dark: #000000;
JSON
{
  "hex": "#abba2a",
  "rgb": {
    "r": 171,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 66.25,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75256,
    "c": 0.15889,
    "h": 115.7
  },
  "luminance": 0.43943
}

Semantic roles & 50–950 ramp

primary
#ABBA2A
secondary
#7F76CA
accent
#42E653
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #ABBA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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