#968B1F#968B1F

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

Color values

HEX#968B1F
RGBrgb(150, 139, 31)
HSLhsl(54, 66%, 35%)
HSVhsv(54, 79%, 59%)
CMYKcmyk(0%, 7.3%, 79.3%, 41.2%)
CIE-LABlab(57.12, -7.92, 54.60)
CIE-LCHlch(57.12, 55.17, 98.25°)
OKLaboklab(62.77% -0.028 0.1189)
OKLCHoklch(62.77% 0.122 103.2)
XYZxyz(22.0586, 25.0492, 4.9691)
Luminance0.2505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#968B1F #1F2A96
analogous
#964F1F #968B1F #65961F
triadic
#968B1F #1F968B #8B1F96
tetradic
#968B1F #1F964F #1F2A96 #961F65
square
#968B1F #1F964F #1F2A96 #961F65
split-complementary
#968B1F #1F6596 #4F1F96
monochromatic
#312D0A #635C15 #968B1F #C9BA29 #DCCF54

Accessibility & contrast

On white

3.49
#968B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#968B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #968B1F
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##968B1F#FFFFFF#000000##000000
##968B1F1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #968b1f;
/* rgb */ color: rgb(150, 139, 31);
/* oklch */ color: oklch(62.8% 0.122 103.2);
Tailwind
colors: {
  custom: {
    50: '#b9ac65',
    500: '#968b1f',
    950: '#000000',
  },
}
SCSS
$custom: #968b1f;
$custom-light: #b9ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#968b1f",
  "rgb": {
    "r": 150,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 54.454,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62767,
    "c": 0.12212,
    "h": 103.2
  },
  "luminance": 0.25048
}

Semantic roles & 50–950 ramp

primary
#968B1F
secondary
#525CBF
accent
#4FE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #968B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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