#9F841B#9F841B

#9F841B is a light, moderate yellow. Relative luminance 0.240; OKLCH L 62.1% C 0.119 H 93.2°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#9F841B
RGBrgb(159, 132, 27)
HSLhsl(48, 71%, 36%)
HSVhsv(48, 83%, 62%)
CMYKcmyk(0%, 17%, 83%, 37.6%)
CIE-LABlab(56.04, -0.09, 55.26)
CIE-LCHlch(56.04, 55.26, 90.09°)
OKLaboklab(62.11% -0.0067 0.119)
OKLCHoklch(62.11% 0.119 93.2)
XYZxyz(22.7485, 23.9540, 4.4621)
Luminance0.2395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F841B #1B369F
analogous
#9F421B #9F841B #789F1B
triadic
#9F841B #1B9F84 #841B9F
tetradic
#9F841B #1B9F42 #1B369F #9F1B78
square
#9F841B #1B9F42 #1B369F #9F1B78
split-complementary
#9F841B #1B789F #421B9F
monochromatic
#362D09 #6B5912 #9F841B #D3AF24 #E2C453

Accessibility & contrast

On white

3.63
#9F841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#9F841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F841B
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F841B#FFFFFF#000000##000000
##9F841B1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#9A8A23
Tritanopia (blue-blind)
#AD7871
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f841b;
/* rgb */ color: rgb(159, 132, 27);
/* oklch */ color: oklch(62.1% 0.119 93.2);
Tailwind
colors: {
  custom: {
    50: '#c0a762',
    500: '#9f841b',
    950: '#000000',
  },
}
SCSS
$custom: #9f841b;
$custom-light: #c0a762;
$custom-dark: #000000;
JSON
{
  "hex": "#9f841b",
  "rgb": {
    "r": 159,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 47.727,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.6211,
    "c": 0.11917,
    "h": 93.2
  },
  "luminance": 0.23953
}

Semantic roles & 50–950 ramp

primary
#9F841B
secondary
#5169C5
accent
#5FEE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F841B

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

Preview Lab → · Contrast checker → · Palette generator →

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