#AB982C#AB982C

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

Color values

HEX#AB982C
RGBrgb(171, 152, 44)
HSLhsl(51, 59%, 42%)
HSVhsv(51, 74%, 67%)
CMYKcmyk(0%, 11.1%, 74.3%, 32.9%)
CIE-LABlab(62.76, -4.90, 55.96)
CIE-LCHlch(62.76, 56.18, 95.00°)
OKLaboklab(67.73% -0.0193 0.1235)
OKLCHoklch(67.73% 0.125 98.9)
XYZxyz(28.4788, 31.2977, 6.9234)
Luminance0.3130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB982C #2C3FAB
analogous
#AB592C #AB982C #7EAB2C
triadic
#AB982C #2CAB98 #982CAB
tetradic
#AB982C #2CAB59 #2C3FAB #AB2C7E
square
#AB982C #2CAB59 #2C3FAB #AB2C7E
split-complementary
#AB982C #2C7EAB #592CAB
monochromatic
#4A4113 #7A6D1F #AB982C #CFBA45 #DCCC76

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB982C#FFFFFF#000000##000000
##AB982C1.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)
#A79419
Deuteranopia (green-blind)
#AC9B33
Tritanopia (blue-blind)
#B98C83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab982c;
/* rgb */ color: rgb(171, 152, 44);
/* oklch */ color: oklch(67.7% 0.125 98.9);
Tailwind
colors: {
  custom: {
    50: '#c8b66d',
    500: '#ab982c',
    950: '#000000',
  },
}
SCSS
$custom: #ab982c;
$custom-light: #c8b66d;
$custom-dark: #000000;
JSON
{
  "hex": "#ab982c",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 44
  },
  "hsl": {
    "h": 51.024,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.6773,
    "c": 0.12495,
    "h": 98.9
  },
  "luminance": 0.31296
}

Semantic roles & 50–950 ramp

primary
#AB982C
secondary
#6F7CC3
accent
#5DE246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB982C

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

Preview Lab → · Contrast checker → · Palette generator →

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