#AC9828#AC9828

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

Color values

HEX#AC9828
RGBrgb(172, 152, 40)
HSLhsl(51, 62%, 42%)
HSVhsv(51, 77%, 67%)
CMYKcmyk(0%, 11.6%, 76.7%, 32.5%)
CIE-LABlab(62.83, -4.63, 57.52)
CIE-LCHlch(62.83, 57.71, 94.60°)
OKLaboklab(67.8% -0.019 0.1259)
OKLCHoklch(67.8% 0.127 98.6)
XYZxyz(28.6259, 31.3818, 6.5566)
Luminance0.3138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC9828 #283CAC
analogous
#AC5628 #AC9828 #7EAC28
triadic
#AC9828 #28AC98 #9828AC
tetradic
#AC9828 #28AC56 #283CAC #AC287E
square
#AC9828 #28AC56 #283CAC #AC287E
split-complementary
#AC9828 #287EAC #5628AC
monochromatic
#494011 #7A6C1C #AC9828 #D2BC3F #DECD71

Accessibility & contrast

On white

2.89
#AC9828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AC9828#FFFFFF#000000##000000
##AC98281.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79411
Deuteranopia (green-blind)
#AD9B30
Tritanopia (blue-blind)
#BA8C83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ac9828;
/* rgb */ color: rgb(172, 152, 40);
/* oklch */ color: oklch(67.8% 0.127 98.6);
Tailwind
colors: {
  custom: {
    50: '#c9b56b',
    500: '#ac9828',
    950: '#000000',
  },
}
SCSS
$custom: #ac9828;
$custom-light: #c9b56b;
$custom-dark: #000000;
JSON
{
  "hex": "#ac9828",
  "rgb": {
    "r": 172,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 50.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.67801,
    "c": 0.12735,
    "h": 98.6
  },
  "luminance": 0.3138
}

Semantic roles & 50–950 ramp

primary
#AC9828
secondary
#6B79C5
accent
#5BE542
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AC9828

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

Preview Lab → · Contrast checker → · Palette generator →

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