#AB982B#AB982B

#AB982B is a light, vivid yellow. Relative luminance 0.313; OKLCH L 67.7% C 0.126 H 99.0°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#AB982B
RGBrgb(171, 152, 43)
HSLhsl(51, 60%, 42%)
HSVhsv(51, 75%, 67%)
CMYKcmyk(0%, 11.1%, 74.9%, 32.9%)
CIE-LABlab(62.75, -4.94, 56.33)
CIE-LCHlch(62.75, 56.55, 95.01°)
OKLaboklab(67.72% -0.0195 0.124)
OKLCHoklch(67.72% 0.126 99)
XYZxyz(28.4603, 31.2902, 6.8256)
Luminance0.3129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB982B #2B3EAB
analogous
#AB582B #AB982B #7EAB2B
triadic
#AB982B #2BAB98 #982BAB
tetradic
#AB982B #2BAB58 #2B3EAB #AB2B7E
square
#AB982B #2BAB58 #2B3EAB #AB2B7E
split-complementary
#AB982B #2B7EAB #582BAB
monochromatic
#494112 #7A6D1F #AB982B #D0BB43 #DCCD74

Accessibility & contrast

On white

2.89
#AB982B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#AB982B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB982B
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB982B#FFFFFF#000000##000000
##AB982B1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79417
Deuteranopia (green-blind)
#AC9B32
Tritanopia (blue-blind)
#B98C83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab982b;
/* rgb */ color: rgb(171, 152, 43);
/* oklch */ color: oklch(67.7% 0.126 99.0);
Tailwind
colors: {
  custom: {
    50: '#c8b66c',
    500: '#ab982b',
    950: '#000000',
  },
}
SCSS
$custom: #ab982b;
$custom-light: #c8b66c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab982b",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 43
  },
  "hsl": {
    "h": 51.094,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.67723,
    "c": 0.12556,
    "h": 99
  },
  "luminance": 0.31289
}

Semantic roles & 50–950 ramp

primary
#AB982B
secondary
#6E7BC4
accent
#5CE345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB982B

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

Preview Lab → · Contrast checker → · Palette generator →

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