#AB9D28#AB9D28

#AB9D28 is a light, vivid yellow. Relative luminance 0.329; OKLCH L 68.8% C 0.131 H 102.2°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#AB9D28
RGBrgb(171, 157, 40)
HSLhsl(54, 62%, 41%)
HSVhsv(54, 77%, 67%)
CMYKcmyk(0%, 8.2%, 76.6%, 32.9%)
CIE-LABlab(64.10, -7.75, 58.67)
CIE-LCHlch(64.10, 59.18, 97.52°)
OKLaboklab(68.79% -0.0278 0.1284)
OKLCHoklch(68.79% 0.131 102.2)
XYZxyz(29.2359, 32.9264, 6.8225)
Luminance0.3292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9D28 #2836AB
analogous
#AB5C28 #AB9D28 #78AB28
triadic
#AB9D28 #28AB9D #9D28AB
tetradic
#AB9D28 #28AB5C #2836AB #AB2878
square
#AB9D28 #28AB5C #2836AB #AB2878
split-complementary
#AB9D28 #2878AB #5C28AB
monochromatic
#484211 #796F1C #AB9D28 #D2C23E #DED270

Accessibility & contrast

On white

2.77
#AB9D28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#AB9D28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9D28
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9D28#FFFFFF#000000##000000
##AB9D281.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC980E
Deuteranopia (green-blind)
#B09E31
Tritanopia (blue-blind)
#B89187
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab9d28;
/* rgb */ color: rgb(171, 157, 40);
/* oklch */ color: oklch(68.8% 0.131 102.2);
Tailwind
colors: {
  custom: {
    50: '#c8b96c',
    500: '#ab9d28',
    950: '#000000',
  },
}
SCSS
$custom: #ab9d28;
$custom-light: #c8b96c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9d28",
  "rgb": {
    "r": 171,
    "g": 157,
    "b": 40
  },
  "hsl": {
    "h": 53.588,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.68789,
    "c": 0.13139,
    "h": 102.2
  },
  "luminance": 0.32925
}

Semantic roles & 50–950 ramp

primary
#AB9D28
secondary
#6A74C4
accent
#54E543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB9D28

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

Preview Lab → · Contrast checker → · Palette generator →

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