#AB9D38#AB9D38

#AB9D38 is a light, vivid yellow. Relative luminance 0.331; OKLCH L 68.9% C 0.121 H 101.4°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AB9D38
RGBrgb(171, 157, 56)
HSLhsl(53, 51%, 45%)
HSVhsv(53, 67%, 67%)
CMYKcmyk(0%, 8.2%, 67.3%, 32.9%)
CIE-LABlab(64.21, -6.94, 52.60)
CIE-LCHlch(64.21, 53.05, 97.52°)
OKLaboklab(68.91% -0.0238 0.1185)
OKLCHoklch(68.91% 0.121 101.4)
XYZxyz(29.5666, 33.0587, 8.5642)
Luminance0.3306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9D38 #3846AB
analogous
#AB6438 #AB9D38 #7FAB38
triadic
#AB9D38 #38AB9D #9D38AB
tetradic
#AB9D38 #38AB64 #3846AB #AB387F
square
#AB9D38 #38AB64 #3846AB #AB387F
split-complementary
#AB9D38 #387FAB #6438AB
monochromatic
#4F481A #7D7329 #AB9D38 #C8BB58 #D7CD86

Accessibility & contrast

On white

2.76
#AB9D38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#AB9D38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9D38
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9D38#FFFFFF#000000##000000
##AB9D381.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB982B
Deuteranopia (green-blind)
#AF9E3E
Tritanopia (blue-blind)
#B89288
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ab9d38;
/* rgb */ color: rgb(171, 157, 56);
/* oklch */ color: oklch(68.9% 0.121 101.4);
Tailwind
colors: {
  custom: {
    50: '#c7b974',
    500: '#ab9d38',
    950: '#000000',
  },
}
SCSS
$custom: #ab9d38;
$custom-light: #c7b974;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9d38",
  "rgb": {
    "r": 171,
    "g": 157,
    "b": 56
  },
  "hsl": {
    "h": 52.696,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.68908,
    "c": 0.12087,
    "h": 101.4
  },
  "luminance": 0.33057
}

Semantic roles & 50–950 ramp

primary
#AB9D38
secondary
#7D86C1
accent
#5FDA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#131108
muted
#82807B

Preview Lab

Preview with #AB9D38

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

Preview Lab → · Contrast checker → · Palette generator →

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