#9F8E2B#9F8E2B

#9F8E2B is a light, moderate yellow. Relative luminance 0.269; OKLCH L 64.4% C 0.117 H 99.2°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9F8E2B
RGBrgb(159, 142, 43)
HSLhsl(51, 57%, 40%)
HSVhsv(51, 73%, 62%)
CMYKcmyk(0%, 10.7%, 73%, 37.6%)
CIE-LABlab(58.87, -4.92, 52.19)
CIE-LCHlch(58.87, 52.42, 95.39°)
OKLaboklab(64.38% -0.0188 0.1157)
OKLCHoklch(64.38% 0.117 99.2)
XYZxyz(24.4083, 26.8925, 6.1901)
Luminance0.2689 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E2B #2B3C9F
analogous
#9F542B #9F8E2B #769F2B
triadic
#9F8E2B #2B9F8E #8E2B9F
tetradic
#9F8E2B #2B9F54 #2B3C9F #9F2B76
square
#9F8E2B #2B9F54 #2B3C9F #9F2B76
split-complementary
#9F8E2B #2B769F #542B9F
monochromatic
#3F3811 #6F631E #9F8E2B #CAB63D #D7C86D

Accessibility & contrast

On white

3.29
#9F8E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#9F8E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8E2B
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8E2B#FFFFFF#000000##000000
##9F8E2B1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A1B
Deuteranopia (green-blind)
#A19031
Tritanopia (blue-blind)
#AC837A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8e2b;
/* rgb */ color: rgb(159, 142, 43);
/* oklch */ color: oklch(64.4% 0.117 99.2);
Tailwind
colors: {
  custom: {
    50: '#bfae6b',
    500: '#9f8e2b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e2b;
$custom-light: #bfae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e2b",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 51.207,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.64381,
    "c": 0.11726,
    "h": 99.2
  },
  "luminance": 0.26891
}

Semantic roles & 50–950 ramp

primary
#9F8E2B
secondary
#6774BE
accent
#5EE147
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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