#9A9823#9A9823

#9A9823 is a light, vivid yellow. Relative luminance 0.294; OKLCH L 66.1% C 0.132 H 108.5°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#9A9823
RGBrgb(154, 152, 35)
HSLhsl(59, 63%, 37%)
HSVhsv(59, 77%, 60%)
CMYKcmyk(0%, 1.3%, 77.3%, 39.6%)
CIE-LABlab(61.18, -12.90, 57.10)
CIE-LCHlch(61.18, 58.54, 102.73°)
OKLaboklab(66.09% -0.0418 0.1248)
OKLCHoklch(66.09% 0.132 108.5)
XYZxyz(24.8590, 29.4487, 5.9645)
Luminance0.2945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A9823 #23259A
analogous
#9A5D23 #9A9823 #609A23
triadic
#9A9823 #239A98 #98239A
tetradic
#9A9823 #239A5D #23259A #9A2360
square
#9A9823 #239A5D #23259A #9A2360
split-complementary
#9A9823 #23609A #5D239A
monochromatic
#36360C #686718 #9A9823 #CCC92E #DAD85D

Accessibility & contrast

On white

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

On black

6.89
#9A9823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A9823
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A9823#FFFFFF#000000##000000
##9A98231.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a9823;
/* rgb */ color: rgb(154, 152, 35);
/* oklch */ color: oklch(66.1% 0.132 108.5);
Tailwind
colors: {
  custom: {
    50: '#bbb668',
    500: '#9a9823',
    950: '#000000',
  },
}
SCSS
$custom: #9a9823;
$custom-light: #bbb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9a9823",
  "rgb": {
    "r": 154,
    "g": 152,
    "b": 35
  },
  "hsl": {
    "h": 58.992,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.66088,
    "c": 0.13162,
    "h": 108.5
  },
  "luminance": 0.29448
}

Semantic roles & 50–950 ramp

primary
#9A9823
secondary
#5A5CBF
accent
#45E642
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9A9823

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

Preview Lab → · Contrast checker → · Palette generator →

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