#9A9828#9A9828

#9A9828 is a light, vivid yellow. Relative luminance 0.295; OKLCH L 66.1% C 0.129 H 108.4°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#9A9828
RGBrgb(154, 152, 40)
HSLhsl(59, 59%, 38%)
HSVhsv(59, 74%, 60%)
CMYKcmyk(0%, 1.3%, 74%, 39.6%)
CIE-LABlab(61.20, -12.68, 55.41)
CIE-LCHlch(61.20, 56.84, 102.89°)
OKLaboklab(66.12% -0.0407 0.1222)
OKLCHoklch(66.12% 0.129 108.4)
XYZxyz(24.9386, 29.4805, 6.3837)
Luminance0.2948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A9828 #282A9A
analogous
#9A5F28 #9A9828 #639A28
triadic
#9A9828 #289A98 #98289A
tetradic
#9A9828 #289A5F #282A9A #9A2863
square
#9A9828 #289A5F #282A9A #9A2863
split-complementary
#9A9828 #28639A #5F289A
monochromatic
#39380F #69681B #9A9828 #CAC835 #D7D565

Accessibility & contrast

On white

3.05
#9A9828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#9A9828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A9828
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A9828#FFFFFF#000000##000000
##9A98281.003.056.906.90
#FFFFFF3.051.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59212
Deuteranopia (green-blind)
#A79531
Tritanopia (blue-blind)
#A58E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9a9828;
/* rgb */ color: rgb(154, 152, 40);
/* oklch */ color: oklch(66.1% 0.129 108.4);
Tailwind
colors: {
  custom: {
    50: '#bbb66b',
    500: '#9a9828',
    950: '#000000',
  },
}
SCSS
$custom: #9a9828;
$custom-light: #bbb66b;
$custom-dark: #000000;
JSON
{
  "hex": "#9a9828",
  "rgb": {
    "r": 154,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 58.947,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.6612,
    "c": 0.12878,
    "h": 108.4
  },
  "luminance": 0.2948
}

Semantic roles & 50–950 ramp

primary
#9A9828
secondary
#6162BD
accent
#49E246
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #9A9828

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

Preview Lab → · Contrast checker → · Palette generator →

#9A9828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva