#9D8F23#9D8F23

#9D8F23 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.4% C 0.123 H 101.6°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9D8F23
RGBrgb(157, 143, 35)
HSLhsl(53, 64%, 38%)
HSVhsv(53, 78%, 62%)
CMYKcmyk(0%, 8.9%, 77.7%, 38.4%)
CIE-LABlab(58.91, -6.74, 55.13)
CIE-LCHlch(58.91, 55.54, 96.97°)
OKLaboklab(64.35% -0.0247 0.1205)
OKLCHoklch(64.35% 0.123 101.6)
XYZxyz(24.0316, 26.9355, 5.5230)
Luminance0.2693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F23 #23319D
analogous
#9D5223 #9D8F23 #6E9D23
triadic
#9D8F23 #239D8F #8F239D
tetradic
#9D8F23 #239D52 #23319D #9D236E
square
#9D8F23 #239D52 #23319D #9D236E
split-complementary
#9D8F23 #236E9D #52239D
monochromatic
#39340D #6B6118 #9D8F23 #CFBD2E #DBCD5F

Accessibility & contrast

On white

3.29
#9D8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#9D8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F23
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F23#FFFFFF#000000##000000
##9D8F231.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B0A
Deuteranopia (green-blind)
#A1902B
Tritanopia (blue-blind)
#A9847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f23;
/* rgb */ color: rgb(157, 143, 35);
/* oklch */ color: oklch(64.4% 0.123 101.6);
Tailwind
colors: {
  custom: {
    50: '#beaf67',
    500: '#9d8f23',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f23;
$custom-light: #beaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f23",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 53.115,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64352,
    "c": 0.12298,
    "h": 101.6
  },
  "luminance": 0.26934
}

Semantic roles & 50–950 ramp

primary
#9D8F23
secondary
#5C67C0
accent
#54E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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