#AB9826#AB9826

#AB9826 is a light, vivid yellow. Relative luminance 0.313; OKLCH L 67.7% C 0.128 H 99.3°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#AB9826
RGBrgb(171, 152, 38)
HSLhsl(51, 64%, 41%)
HSVhsv(51, 78%, 67%)
CMYKcmyk(0%, 11.1%, 77.8%, 32.9%)
CIE-LABlab(62.72, -5.16, 58.08)
CIE-LCHlch(62.72, 58.31, 95.07°)
OKLaboklab(67.69% -0.0207 0.1268)
OKLCHoklch(67.69% 0.128 99.3)
XYZxyz(28.3741, 31.2558, 6.3718)
Luminance0.3125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9826 #2639AB
analogous
#AB5626 #AB9826 #7BAB26
triadic
#AB9826 #26AB98 #9826AB
tetradic
#AB9826 #26AB56 #2639AB #AB267B
square
#AB9826 #26AB56 #2639AB #AB267B
split-complementary
#AB9826 #267BAB #5626AB
monochromatic
#473F10 #796B1B #AB9826 #D3BE3B #DFCE6D

Accessibility & contrast

On white

2.90
#AB9826 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#AB9826 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9826
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9826#FFFFFF#000000##000000
##AB98261.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7940C
Deuteranopia (green-blind)
#AD9B2E
Tritanopia (blue-blind)
#B98C82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab9826;
/* rgb */ color: rgb(171, 152, 38);
/* oklch */ color: oklch(67.7% 0.128 99.3);
Tailwind
colors: {
  custom: {
    50: '#c8b56a',
    500: '#ab9826',
    950: '#000000',
  },
}
SCSS
$custom: #ab9826;
$custom-light: #c8b56a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9826",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 51.429,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.67691,
    "c": 0.12843,
    "h": 99.3
  },
  "luminance": 0.31254
}

Semantic roles & 50–950 ramp

primary
#AB9826
secondary
#6875C5
accent
#59E741
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#141107
muted
#82807A

Preview Lab

Preview with #AB9826

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

Preview Lab → · Contrast checker → · Palette generator →

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