#9D8F19#9D8F19

#9D8F19 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.128 H 102.0°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9D8F19
RGBrgb(157, 143, 25)
HSLhsl(54, 73%, 36%)
HSVhsv(54, 84%, 62%)
CMYKcmyk(0%, 8.9%, 84.1%, 38.4%)
CIE-LABlab(58.87, -7.10, 58.19)
CIE-LCHlch(58.87, 58.62, 96.95°)
OKLaboklab(64.3% -0.0265 0.1251)
OKLCHoklch(64.3% 0.128 102)
XYZxyz(23.9037, 26.8843, 4.8496)
Luminance0.2688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F19 #19279D
analogous
#9D4D19 #9D8F19 #699D19
triadic
#9D8F19 #199D8F #8F199D
tetradic
#9D8F19 #199D4D #19279D #9D1969
square
#9D8F19 #199D4D #19279D #9D1969
split-complementary
#9D8F19 #19699D #4D199D
monochromatic
#332F08 #685F11 #9D8F19 #D2BF21 #E3D34E

Accessibility & contrast

On white

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

On black

6.38
#9D8F19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F19
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F19#FFFFFF#000000##000000
##9D8F191.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#A19024
Tritanopia (blue-blind)
#AA847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f19;
/* rgb */ color: rgb(157, 143, 25);
/* oklch */ color: oklch(64.3% 0.128 102.0);
Tailwind
colors: {
  custom: {
    50: '#beaf63',
    500: '#9d8f19',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f19;
$custom-light: #beaf63;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f19",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 25
  },
  "hsl": {
    "h": 53.636,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.643,
    "c": 0.12784,
    "h": 102
  },
  "luminance": 0.26883
}

Semantic roles & 50–950 ramp

primary
#9D8F19
secondary
#4D5AC5
accent
#4CEF39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8F19

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

Preview Lab → · Contrast checker → · Palette generator →

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