#AB982D#AB982D

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

Color values

HEX#AB982D
RGBrgb(171, 152, 45)
HSLhsl(51, 58%, 42%)
HSVhsv(51, 74%, 67%)
CMYKcmyk(0%, 11.1%, 73.7%, 32.9%)
CIE-LABlab(62.76, -4.85, 55.59)
CIE-LCHlch(62.76, 55.80, 94.99°)
OKLaboklab(67.74% -0.0191 0.1229)
OKLCHoklch(67.74% 0.124 98.8)
XYZxyz(28.4979, 31.3053, 7.0236)
Luminance0.3130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB982D #2D40AB
analogous
#AB592D #AB982D #7FAB2D
triadic
#AB982D #2DAB98 #982DAB
tetradic
#AB982D #2DAB59 #2D40AB #AB2D7F
square
#AB982D #2DAB59 #2D40AB #AB2D7F
split-complementary
#AB982D #2D7FAB #592DAB
monochromatic
#4A4214 #7B6D20 #AB982D #CEBA47 #DBCC77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB982D#FFFFFF#000000##000000
##AB982D1.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)
#A7941B
Deuteranopia (green-blind)
#AC9B34
Tritanopia (blue-blind)
#B98C83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab982d;
/* rgb */ color: rgb(171, 152, 45);
/* oklch */ color: oklch(67.7% 0.124 98.8);
Tailwind
colors: {
  custom: {
    50: '#c8b66d',
    500: '#ab982d',
    950: '#000000',
  },
}
SCSS
$custom: #ab982d;
$custom-light: #c8b66d;
$custom-dark: #000000;
JSON
{
  "hex": "#ab982d",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 45
  },
  "hsl": {
    "h": 50.952,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.67737,
    "c": 0.12432,
    "h": 98.8
  },
  "luminance": 0.31304
}

Semantic roles & 50–950 ramp

primary
#AB982D
secondary
#717DC3
accent
#5EE246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB982D

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

Preview Lab → · Contrast checker → · Palette generator →

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