#9A8D23#9A8D23

#9A8D23 is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.6% C 0.121 H 102.0°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9A8D23
RGBrgb(154, 141, 35)
HSLhsl(53, 63%, 37%)
HSVhsv(53, 77%, 60%)
CMYKcmyk(0%, 8.4%, 77.3%, 39.6%)
CIE-LABlab(58.08, -7.02, 54.25)
CIE-LCHlch(58.08, 54.71, 97.37°)
OKLaboklab(63.62% -0.0253 0.1188)
OKLCHoklch(63.62% 0.121 102)
XYZxyz(23.1558, 26.0422, 5.3967)
Luminance0.2604 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8D23 #23309A
analogous
#9A5123 #9A8D23 #6C9A23
triadic
#9A8D23 #239A8D #8D239A
tetradic
#9A8D23 #239A51 #23309A #9A236C
square
#9A8D23 #239A51 #23309A #9A236C
split-complementary
#9A8D23 #236C9A #51239A
monochromatic
#36320C #685F18 #9A8D23 #CCBB2E #DACD5D

Accessibility & contrast

On white

3.38
#9A8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#9A8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8D23
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8D23#FFFFFF#000000##000000
##9A8D231.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B880C
Deuteranopia (green-blind)
#9E8E2B
Tritanopia (blue-blind)
#A68279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9a8d23;
/* rgb */ color: rgb(154, 141, 35);
/* oklch */ color: oklch(63.6% 0.121 102.0);
Tailwind
colors: {
  custom: {
    50: '#bbae67',
    500: '#9a8d23',
    950: '#000000',
  },
}
SCSS
$custom: #9a8d23;
$custom-light: #bbae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8d23",
  "rgb": {
    "r": 154,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 53.445,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63621,
    "c": 0.12141,
    "h": 102
  },
  "luminance": 0.26041
}

Semantic roles & 50–950 ramp

primary
#9A8D23
secondary
#5A65BF
accent
#54E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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