#AB9F28#AB9F28

#AB9F28 is a light, vivid yellow. Relative luminance 0.336; OKLCH L 69.2% C 0.133 H 103.4°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#AB9F28
RGBrgb(171, 159, 40)
HSLhsl(55, 62%, 41%)
HSVhsv(55, 77%, 67%)
CMYKcmyk(0%, 7%, 76.6%, 32.9%)
CIE-LABlab(64.65, -8.81, 59.18)
CIE-LCHlch(64.65, 59.83, 98.47°)
OKLaboklab(69.23% -0.0308 0.1295)
OKLCHoklch(69.23% 0.133 103.4)
XYZxyz(29.5771, 33.6087, 6.9362)
Luminance0.3361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9F28 #2834AB
analogous
#AB5E28 #AB9F28 #76AB28
triadic
#AB9F28 #28AB9F #9F28AB
tetradic
#AB9F28 #28AB5E #2834AB #AB2876
square
#AB9F28 #28AB5E #2834AB #AB2876
split-complementary
#AB9F28 #2876AB #5E28AB
monochromatic
#484311 #79711C #AB9F28 #D2C43E #DED370

Accessibility & contrast

On white

2.72
#AB9F28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#AB9F28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9F28
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9F28#FFFFFF#000000##000000
##AB9F281.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A0D
Deuteranopia (green-blind)
#B29F31
Tritanopia (blue-blind)
#B89388
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ab9f28;
/* rgb */ color: rgb(171, 159, 40);
/* oklch */ color: oklch(69.2% 0.133 103.4);
Tailwind
colors: {
  custom: {
    50: '#c8bb6c',
    500: '#ab9f28',
    950: '#000000',
  },
}
SCSS
$custom: #ab9f28;
$custom-light: #c8bb6c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9f28",
  "rgb": {
    "r": 171,
    "g": 159,
    "b": 40
  },
  "hsl": {
    "h": 54.504,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.69226,
    "c": 0.1331,
    "h": 103.4
  },
  "luminance": 0.33607
}

Semantic roles & 50–950 ramp

primary
#AB9F28
secondary
#6A73C4
accent
#52E543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB9F28

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

Preview Lab → · Contrast checker → · Palette generator →

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