#9F841F#9F841F

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

Color values

HEX#9F841F
RGBrgb(159, 132, 31)
HSLhsl(47, 67%, 37%)
HSVhsv(47, 81%, 62%)
CMYKcmyk(0%, 17%, 80.5%, 37.6%)
CIE-LABlab(56.06, 0.05, 53.97)
CIE-LCHlch(56.06, 53.97, 89.94°)
OKLaboklab(62.13% -0.0059 0.1171)
OKLCHoklch(62.13% 0.117 92.9)
XYZxyz(22.7980, 23.9738, 4.7227)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F841F #1F3A9F
analogous
#9F441F #9F841F #7A9F1F
triadic
#9F841F #1F9F84 #841F9F
tetradic
#9F841F #1F9F44 #1F3A9F #9F1F7A
square
#9F841F #1F9F44 #1F3A9F #9F1F7A
split-complementary
#9F841F #1F7A9F #441F9F
monochromatic
#392F0B #6C5915 #9F841F #D2AF29 #DFC35A

Accessibility & contrast

On white

3.62
#9F841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F841F#FFFFFF#000000##000000
##9F841F1.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938206
Deuteranopia (green-blind)
#9A8A26
Tritanopia (blue-blind)
#AC7971
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f841f;
/* rgb */ color: rgb(159, 132, 31);
/* oklch */ color: oklch(62.1% 0.117 92.9);
Tailwind
colors: {
  custom: {
    50: '#c0a764',
    500: '#9f841f',
    950: '#000000',
  },
}
SCSS
$custom: #9f841f;
$custom-light: #c0a764;
$custom-dark: #000000;
JSON
{
  "hex": "#9f841f",
  "rgb": {
    "r": 159,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 47.344,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62132,
    "c": 0.11723,
    "h": 92.9
  },
  "luminance": 0.23972
}

Semantic roles & 50–950 ramp

primary
#9F841F
secondary
#576EC3
accent
#62EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F841F

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

Preview Lab → · Contrast checker → · Palette generator →

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