#AB9228#AB9228

#AB9228 is a light, vivid yellow. Relative luminance 0.294; OKLCH L 66.4% C 0.123 H 95.1°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#AB9228
RGBrgb(171, 146, 40)
HSLhsl(49, 62%, 41%)
HSVhsv(49, 77%, 67%)
CMYKcmyk(0%, 14.6%, 76.6%, 32.9%)
CIE-LABlab(61.11, -1.83, 55.88)
CIE-LCHlch(61.11, 55.91, 91.87°)
OKLaboklab(66.42% -0.011 0.1225)
OKLCHoklch(66.42% 0.123 95.1)
XYZxyz(27.4580, 29.3704, 6.2299)
Luminance0.2937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9228 #2841AB
analogous
#AB5128 #AB9228 #83AB28
triadic
#AB9228 #28AB92 #9228AB
tetradic
#AB9228 #28AB51 #2841AB #AB2883
square
#AB9228 #28AB51 #2841AB #AB2883
split-complementary
#AB9228 #2883AB #5128AB
monochromatic
#483D11 #79681C #AB9228 #D2B63E #DEC970

Accessibility & contrast

On white

3.06
#AB9228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#AB9228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB9228
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9228#FFFFFF#000000##000000
##AB92281.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F14
Deuteranopia (green-blind)
#A8972F
Tritanopia (blue-blind)
#B9867E
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ab9228;
/* rgb */ color: rgb(171, 146, 40);
/* oklch */ color: oklch(66.4% 0.123 95.1);
Tailwind
colors: {
  custom: {
    50: '#c8b16a',
    500: '#ab9228',
    950: '#000000',
  },
}
SCSS
$custom: #ab9228;
$custom-light: #c8b16a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9228",
  "rgb": {
    "r": 171,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 48.55,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.66415,
    "c": 0.12296,
    "h": 95.1
  },
  "luminance": 0.29369
}

Semantic roles & 50–950 ramp

primary
#AB9228
secondary
#6A7CC4
accent
#62E543
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#141007
muted
#827F7A

Preview Lab

Preview with #AB9228

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

Preview Lab → · Contrast checker → · Palette generator →

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