#AB982A#AB982A

#AB982A 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#AB982A
RGBrgb(171, 152, 42)
HSLhsl(51, 61%, 42%)
HSVhsv(51, 75%, 67%)
CMYKcmyk(0%, 11.1%, 75.4%, 32.9%)
CIE-LABlab(62.75, -4.99, 56.69)
CIE-LCHlch(62.75, 56.91, 95.03°)
OKLaboklab(67.72% -0.0198 0.1246)
OKLCHoklch(67.72% 0.126 99)
XYZxyz(28.4421, 31.2830, 6.7301)
Luminance0.3128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB982A #2A3DAB
analogous
#AB582A #AB982A #7EAB2A
triadic
#AB982A #2AAB98 #982AAB
tetradic
#AB982A #2AAB58 #2A3DAB #AB2A7E
square
#AB982A #2AAB58 #2A3DAB #AB2A7E
split-complementary
#AB982A #2A7EAB #582AAB
monochromatic
#494112 #7A6C1E #AB982A #D1BB42 #DDCD73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB982A#FFFFFF#000000##000000
##AB982A1.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)
#A79415
Deuteranopia (green-blind)
#AC9B31
Tritanopia (blue-blind)
#B98C83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab982a;
/* rgb */ color: rgb(171, 152, 42);
/* oklch */ color: oklch(67.7% 0.126 99.0);
Tailwind
colors: {
  custom: {
    50: '#c8b56c',
    500: '#ab982a',
    950: '#000000',
  },
}
SCSS
$custom: #ab982a;
$custom-light: #c8b56c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab982a",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 42
  },
  "hsl": {
    "h": 51.163,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.67717,
    "c": 0.12616,
    "h": 99
  },
  "luminance": 0.31282
}

Semantic roles & 50–950 ramp

primary
#AB982A
secondary
#6D7AC4
accent
#5CE444
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB982A

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

Preview Lab → · Contrast checker → · Palette generator →

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