#9A8F23#9A8F23

#9A8F23 is a light, vivid yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.123 H 103.3°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9A8F23
RGBrgb(154, 143, 35)
HSLhsl(54, 63%, 37%)
HSVhsv(54, 77%, 60%)
CMYKcmyk(0%, 7.1%, 77.3%, 39.6%)
CIE-LABlab(58.64, -8.10, 54.77)
CIE-LCHlch(58.64, 55.37, 98.41°)
OKLaboklab(64.07% -0.0283 0.1199)
OKLCHoklch(64.07% 0.123 103.3)
XYZxyz(23.4533, 26.6373, 5.4959)
Luminance0.2664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8F23 #232E9A
analogous
#9A5423 #9A8F23 #6A9A23
triadic
#9A8F23 #239A8F #8F239A
tetradic
#9A8F23 #239A54 #232E9A #9A236A
square
#9A8F23 #239A54 #232E9A #9A236A
split-complementary
#9A8F23 #236A9A #54239A
monochromatic
#36320C #686118 #9A8F23 #CCBD2E #DACF5D

Accessibility & contrast

On white

3.32
#9A8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#9A8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8F23
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8F23#FFFFFF#000000##000000
##9A8F231.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A0B
Deuteranopia (green-blind)
#A08F2B
Tritanopia (blue-blind)
#A6857B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9a8f23;
/* rgb */ color: rgb(154, 143, 35);
/* oklch */ color: oklch(64.1% 0.123 103.3);
Tailwind
colors: {
  custom: {
    50: '#bbaf67',
    500: '#9a8f23',
    950: '#000000',
  },
}
SCSS
$custom: #9a8f23;
$custom-light: #bbaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8f23",
  "rgb": {
    "r": 154,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 54.454,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64066,
    "c": 0.12315,
    "h": 103.3
  },
  "luminance": 0.26636
}

Semantic roles & 50–950 ramp

primary
#9A8F23
secondary
#5A63BF
accent
#51E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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