#9F851B#9F851B

#9F851B is a light, moderate yellow. Relative luminance 0.242; OKLCH L 62.3% C 0.120 H 94.0°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9F851B
RGBrgb(159, 133, 27)
HSLhsl(48, 71%, 36%)
HSVhsv(48, 83%, 62%)
CMYKcmyk(0%, 16.4%, 83%, 37.6%)
CIE-LABlab(56.31, -0.64, 55.49)
CIE-LCHlch(56.31, 55.50, 90.66°)
OKLaboklab(62.33% -0.0083 0.1195)
OKLCHoklch(62.33% 0.12 94)
XYZxyz(22.8848, 24.2265, 4.5075)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F851B #1B359F
analogous
#9F431B #9F851B #779F1B
triadic
#9F851B #1B9F85 #851B9F
tetradic
#9F851B #1B9F43 #1B359F #9F1B77
square
#9F851B #1B9F43 #1B359F #9F1B77
split-complementary
#9F851B #1B779F #431B9F
monochromatic
#362D09 #6B5912 #9F851B #D3B124 #E2C653

Accessibility & contrast

On white

3.59
#9F851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#9F851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F851B
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F851B#FFFFFF#000000##000000
##9F851B1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948300
Deuteranopia (green-blind)
#9B8A23
Tritanopia (blue-blind)
#AD7972
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9f851b;
/* rgb */ color: rgb(159, 133, 27);
/* oklch */ color: oklch(62.3% 0.120 94.0);
Tailwind
colors: {
  custom: {
    50: '#c0a862',
    500: '#9f851b',
    950: '#000000',
  },
}
SCSS
$custom: #9f851b;
$custom-light: #c0a862;
$custom-dark: #000000;
JSON
{
  "hex": "#9f851b",
  "rgb": {
    "r": 159,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 48.182,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62325,
    "c": 0.11979,
    "h": 94
  },
  "luminance": 0.24225
}

Semantic roles & 50–950 ramp

primary
#9F851B
secondary
#5168C5
accent
#5DEE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F851B

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

Preview Lab → · Contrast checker → · Palette generator →

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