#AB9728#AB9728

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

Color values

HEX#AB9728
RGBrgb(171, 151, 40)
HSLhsl(51, 62%, 41%)
HSVhsv(51, 77%, 67%)
CMYKcmyk(0%, 11.7%, 76.6%, 32.9%)
CIE-LABlab(62.46, -4.54, 57.14)
CIE-LCHlch(62.46, 57.32, 94.54°)
OKLaboklab(67.49% -0.0187 0.1252)
OKLCHoklch(67.49% 0.127 98.5)
XYZxyz(28.2456, 30.9458, 6.4924)
Luminance0.3094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9728 #283CAB
analogous
#AB5628 #AB9728 #7EAB28
triadic
#AB9728 #28AB97 #9728AB
tetradic
#AB9728 #28AB56 #283CAB #AB287E
square
#AB9728 #28AB56 #283CAB #AB287E
split-complementary
#AB9728 #287EAB #5628AB
monochromatic
#483F11 #796B1C #AB9728 #D2BB3E #DECD70

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB9728#FFFFFF#000000##000000
##AB97281.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)
#A69312
Deuteranopia (green-blind)
#AC9A30
Tritanopia (blue-blind)
#B98B82
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab9728;
/* rgb */ color: rgb(171, 151, 40);
/* oklch */ color: oklch(67.5% 0.127 98.5);
Tailwind
colors: {
  custom: {
    50: '#c8b56b',
    500: '#ab9728',
    950: '#000000',
  },
}
SCSS
$custom: #ab9728;
$custom-light: #c8b56b;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9728",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 50.84,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.67488,
    "c": 0.12656,
    "h": 98.5
  },
  "luminance": 0.30944
}

Semantic roles & 50–950 ramp

primary
#AB9728
secondary
#6A78C4
accent
#5BE543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB9728

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

Preview Lab → · Contrast checker → · Palette generator →

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