#968A1F#968A1F

#968A1F is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.5% C 0.121 H 102.6°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#968A1F
RGBrgb(150, 138, 31)
HSLhsl(54, 66%, 35%)
HSVhsv(54, 79%, 59%)
CMYKcmyk(0%, 8%, 79.3%, 41.2%)
CIE-LABlab(56.84, -7.38, 54.35)
CIE-LCHlch(56.84, 54.85, 97.73°)
OKLaboklab(62.54% -0.0264 0.1183)
OKLCHoklch(62.54% 0.121 102.6)
XYZxyz(21.9145, 24.7609, 4.9211)
Luminance0.2476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#968A1F #1F2B96
analogous
#964F1F #968A1F #66961F
triadic
#968A1F #1F968A #8A1F96
tetradic
#968A1F #1F964F #1F2B96 #961F66
square
#968A1F #1F964F #1F2B96 #961F66
split-complementary
#968A1F #1F6696 #4F1F96
monochromatic
#312D0A #635B15 #968A1F #C9B929 #DCCE54

Accessibility & contrast

On white

3.53
#968A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#968A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #968A1F
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##968A1F#FFFFFF#000000##000000
##968A1F1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#9B8B27
Tritanopia (blue-blind)
#A28076
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #968a1f;
/* rgb */ color: rgb(150, 138, 31);
/* oklch */ color: oklch(62.5% 0.121 102.6);
Tailwind
colors: {
  custom: {
    50: '#b9ab65',
    500: '#968a1f',
    950: '#000000',
  },
}
SCSS
$custom: #968a1f;
$custom-light: #b9ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#968a1f",
  "rgb": {
    "r": 150,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 53.95,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62543,
    "c": 0.12124,
    "h": 102.6
  },
  "luminance": 0.2476
}

Semantic roles & 50–950 ramp

primary
#968A1F
secondary
#525DBF
accent
#50E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #968A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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