#9D951F#9D951F

#9D951F is a light, vivid yellow. Relative luminance 0.288; OKLCH L 65.7% C 0.130 H 105.3°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#9D951F
RGBrgb(157, 149, 31)
HSLhsl(56, 67%, 37%)
HSVhsv(56, 80%, 62%)
CMYKcmyk(0%, 5.1%, 80.3%, 38.4%)
CIE-LABlab(60.57, -10.12, 57.93)
CIE-LCHlch(60.57, 58.80, 99.91°)
OKLaboklab(65.66% -0.0345 0.1257)
OKLCHoklch(65.66% 0.13 105.3)
XYZxyz(24.9005, 28.7629, 5.5362)
Luminance0.2876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D951F #1F279D
analogous
#9D561F #9D951F #669D1F
triadic
#9D951F #1F9D95 #951F9D
tetradic
#9D951F #1F9D56 #1F279D #9D1F66
square
#9D951F #1F9D56 #1F279D #9D1F66
split-complementary
#9D951F #1F669D #561F9D
monochromatic
#37340B #6A6415 #9D951F #D0C629 #DED658

Accessibility & contrast

On white

3.11
#9D951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#9D951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D951F
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D951F#FFFFFF#000000##000000
##9D951F1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#A69429
Tritanopia (blue-blind)
#A98A7F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #9d951f;
/* rgb */ color: rgb(157, 149, 31);
/* oklch */ color: oklch(65.7% 0.130 105.3);
Tailwind
colors: {
  custom: {
    50: '#beb366',
    500: '#9d951f',
    950: '#000000',
  },
}
SCSS
$custom: #9d951f;
$custom-light: #beb366;
$custom-dark: #000000;
JSON
{
  "hex": "#9d951f",
  "rgb": {
    "r": 157,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 56.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.65664,
    "c": 0.13033,
    "h": 105.3
  },
  "luminance": 0.28762
}

Semantic roles & 50–950 ramp

primary
#9D951F
secondary
#565DC2
accent
#49EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D951F

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

Preview Lab → · Contrast checker → · Palette generator →

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