#AB9938#AB9938

#AB9938 is a light, moderate yellow. Relative luminance 0.317; OKLCH L 68.0% C 0.117 H 98.7°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#AB9938
RGBrgb(171, 153, 56)
HSLhsl(51, 51%, 45%)
HSVhsv(51, 67%, 67%)
CMYKcmyk(0%, 10.5%, 67.3%, 32.9%)
CIE-LABlab(63.12, -4.80, 51.46)
CIE-LCHlch(63.12, 51.69, 95.33°)
OKLaboklab(68.04% -0.0177 0.1161)
OKLCHoklch(68.04% 0.117 98.7)
XYZxyz(28.9009, 31.7273, 8.3423)
Luminance0.3173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9938 #384AAB
analogous
#AB6038 #AB9938 #84AB38
triadic
#AB9938 #38AB99 #9938AB
tetradic
#AB9938 #38AB60 #384AAB #AB3884
square
#AB9938 #38AB60 #384AAB #AB3884
split-complementary
#AB9938 #3884AB #6038AB
monochromatic
#4F471A #7D7029 #AB9938 #C8B758 #D7CB86

Accessibility & contrast

On white

2.86
#AB9938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#AB9938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9938
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9938#FFFFFF#000000##000000
##AB99381.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8952C
Deuteranopia (green-blind)
#AC9C3D
Tritanopia (blue-blind)
#B88E85
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab9938;
/* rgb */ color: rgb(171, 153, 56);
/* oklch */ color: oklch(68.0% 0.117 98.7);
Tailwind
colors: {
  custom: {
    50: '#c7b674',
    500: '#ab9938',
    950: '#000000',
  },
}
SCSS
$custom: #ab9938;
$custom-light: #c7b674;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9938",
  "rgb": {
    "r": 171,
    "g": 153,
    "b": 56
  },
  "hsl": {
    "h": 50.609,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.68042,
    "c": 0.11745,
    "h": 98.7
  },
  "luminance": 0.31726
}

Semantic roles & 50–950 ramp

primary
#AB9938
secondary
#7D88C1
accent
#64DA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#131108
muted
#82807B

Preview Lab

Preview with #AB9938

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

Preview Lab → · Contrast checker → · Palette generator →

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