#AB9838#AB9838

#AB9838 is a light, moderate yellow. Relative luminance 0.314; OKLCH L 67.8% C 0.117 H 98.0°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AB9838
RGBrgb(171, 152, 56)
HSLhsl(50, 51%, 45%)
HSVhsv(50, 67%, 67%)
CMYKcmyk(0%, 11.1%, 67.3%, 32.9%)
CIE-LABlab(62.84, -4.26, 51.18)
CIE-LCHlch(62.84, 51.36, 94.76°)
OKLaboklab(67.83% -0.0161 0.1155)
OKLCHoklch(67.83% 0.117 98)
XYZxyz(28.7379, 31.4013, 8.2879)
Luminance0.3140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9838 #384BAB
analogous
#AB5F38 #AB9838 #85AB38
triadic
#AB9838 #38AB98 #9838AB
tetradic
#AB9838 #38AB5F #384BAB #AB3885
square
#AB9838 #38AB5F #384BAB #AB3885
split-complementary
#AB9838 #3885AB #5F38AB
monochromatic
#4F461A #7D6F29 #AB9838 #C8B658 #D7CA86

Accessibility & contrast

On white

2.88
#AB9838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AB9838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9838
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9838#FFFFFF#000000##000000
##AB98381.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7942C
Deuteranopia (green-blind)
#AC9B3D
Tritanopia (blue-blind)
#B88D84
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab9838;
/* rgb */ color: rgb(171, 152, 56);
/* oklch */ color: oklch(67.8% 0.117 98.0);
Tailwind
colors: {
  custom: {
    50: '#c7b674',
    500: '#ab9838',
    950: '#000000',
  },
}
SCSS
$custom: #ab9838;
$custom-light: #c7b674;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9838",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 56
  },
  "hsl": {
    "h": 50.087,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67827,
    "c": 0.11663,
    "h": 98
  },
  "luminance": 0.314
}

Semantic roles & 50–950 ramp

primary
#AB9838
secondary
#7D89C1
accent
#65DA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#131108
muted
#82807B

Preview Lab

Preview with #AB9838

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

Preview Lab → · Contrast checker → · Palette generator →

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