#AB9726#AB9726

#AB9726 is a light, vivid yellow. Relative luminance 0.309; OKLCH L 67.5% C 0.128 H 98.6°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#AB9726
RGBrgb(171, 151, 38)
HSLhsl(51, 64%, 41%)
HSVhsv(51, 78%, 67%)
CMYKcmyk(0%, 11.7%, 77.8%, 32.9%)
CIE-LABlab(62.45, -4.62, 57.83)
CIE-LCHlch(62.45, 58.02, 94.56°)
OKLaboklab(67.47% -0.0191 0.1262)
OKLCHoklch(67.47% 0.128 98.6)
XYZxyz(28.2125, 30.9325, 6.3179)
Luminance0.3093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9726 #263AAB
analogous
#AB5426 #AB9726 #7CAB26
triadic
#AB9726 #26AB97 #9726AB
tetradic
#AB9726 #26AB54 #263AAB #AB267C
square
#AB9726 #26AB54 #263AAB #AB267C
split-complementary
#AB9726 #267CAB #5426AB
monochromatic
#473F10 #796B1B #AB9726 #D3BC3B #DFCD6D

Accessibility & contrast

On white

2.92
#AB9726 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#AB9726 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9726
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9726#FFFFFF#000000##000000
##AB97261.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6930D
Deuteranopia (green-blind)
#AC9A2E
Tritanopia (blue-blind)
#B98B82
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab9726;
/* rgb */ color: rgb(171, 151, 38);
/* oklch */ color: oklch(67.5% 0.128 98.6);
Tailwind
colors: {
  custom: {
    50: '#c8b56a',
    500: '#ab9726',
    950: '#000000',
  },
}
SCSS
$custom: #ab9726;
$custom-light: #c8b56a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9726",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 38
  },
  "hsl": {
    "h": 50.977,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.67475,
    "c": 0.12767,
    "h": 98.6
  },
  "luminance": 0.30931
}

Semantic roles & 50–950 ramp

primary
#AB9726
secondary
#6876C5
accent
#5AE741
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#141107
muted
#82807A

Preview Lab

Preview with #AB9726

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

Preview Lab → · Contrast checker → · Palette generator →

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