#958B1F#958B1F

#958B1F is a light, vivid yellow. Relative luminance 0.250; OKLCH L 62.7% C 0.122 H 103.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#958B1F
RGBrgb(149, 139, 31)
HSLhsl(55, 66%, 35%)
HSVhsv(55, 79%, 58%)
CMYKcmyk(0%, 6.7%, 79.2%, 41.6%)
CIE-LABlab(57.03, -8.38, 54.49)
CIE-LCHlch(57.03, 55.13, 98.74°)
OKLaboklab(62.67% -0.0292 0.1187)
OKLCHoklch(62.67% 0.122 103.8)
XYZxyz(21.8754, 24.9547, 4.9605)
Luminance0.2495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#958B1F #1F2995
analogous
#95501F #958B1F #64951F
triadic
#958B1F #1F958B #8B1F95
tetradic
#958B1F #1F9550 #1F2995 #951F64
square
#958B1F #1F9550 #1F2995 #951F64
split-complementary
#958B1F #1F6495 #501F95
monochromatic
#302C0A #625C14 #958B1F #C8BA2A #DBD053

Accessibility & contrast

On white

3.51
#958B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#958B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #958B1F
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##958B1F#FFFFFF#000000##000000
##958B1F1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9B8B28
Tritanopia (blue-blind)
#A18177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #958b1f;
/* rgb */ color: rgb(149, 139, 31);
/* oklch */ color: oklch(62.7% 0.122 103.8);
Tailwind
colors: {
  custom: {
    50: '#b8ac65',
    500: '#958b1f',
    950: '#000000',
  },
}
SCSS
$custom: #958b1f;
$custom-light: #b8ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#958b1f",
  "rgb": {
    "r": 149,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 54.915,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62672,
    "c": 0.1222,
    "h": 103.8
  },
  "luminance": 0.24954
}

Semantic roles & 50–950 ramp

primary
#958B1F
secondary
#515BBF
accent
#4EE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #958B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#958B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva