#9D8E1F#9D8E1F

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

Color values

HEX#9D8E1F
RGBrgb(157, 142, 31)
HSLhsl(53, 67%, 37%)
HSVhsv(53, 80%, 62%)
CMYKcmyk(0%, 9.6%, 80.3%, 38.4%)
CIE-LABlab(58.62, -6.35, 56.19)
CIE-LCHlch(58.62, 56.55, 96.45°)
OKLaboklab(64.11% -0.0239 0.1219)
OKLCHoklch(64.11% 0.124 101.1)
XYZxyz(23.8261, 26.6142, 5.1781)
Luminance0.2661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8E1F #1F2E9D
analogous
#9D4F1F #9D8E1F #6D9D1F
triadic
#9D8E1F #1F9D8E #8E1F9D
tetradic
#9D8E1F #1F9D4F #1F2E9D #9D1F6D
square
#9D8E1F #1F9D4F #1F2E9D #9D1F6D
split-complementary
#9D8E1F #1F6D9D #4F1F9D
monochromatic
#37320B #6A6015 #9D8E1F #D0BC29 #DECE58

Accessibility & contrast

On white

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

On black

6.32
#9D8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8E1F
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8E1F#FFFFFF#000000##000000
##9D8E1F1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#A09028
Tritanopia (blue-blind)
#AA8379
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8e1f;
/* rgb */ color: rgb(157, 142, 31);
/* oklch */ color: oklch(64.1% 0.124 101.1);
Tailwind
colors: {
  custom: {
    50: '#beae65',
    500: '#9d8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9d8e1f;
$custom-light: #beae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8e1f",
  "rgb": {
    "r": 157,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 52.857,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.64108,
    "c": 0.12427,
    "h": 101.1
  },
  "luminance": 0.26613
}

Semantic roles & 50–950 ramp

primary
#9D8E1F
secondary
#5663C2
accent
#52EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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