#9F7E1B#9F7E1B

#9F7E1B is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.8% C 0.116 H 88.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9F7E1B
RGBrgb(159, 126, 27)
HSLhsl(45, 71%, 36%)
HSVhsv(45, 83%, 62%)
CMYKcmyk(0%, 20.8%, 83%, 37.6%)
CIE-LABlab(54.42, 3.26, 53.85)
CIE-LCHlch(54.42, 53.95, 86.53°)
OKLaboklab(60.83% 0.0028 0.1159)
OKLCHoklch(60.83% 0.116 88.6)
XYZxyz(21.9581, 22.3733, 4.1986)
Luminance0.2237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F7E1B #1B3C9F
analogous
#9F3C1B #9F7E1B #7E9F1B
triadic
#9F7E1B #1B9F7E #7E1B9F
tetradic
#9F7E1B #1B9F3C #1B3C9F #9F1B7E
square
#9F7E1B #1B9F3C #1B3C9F #9F1B7E
split-complementary
#9F7E1B #1B7E9F #3C1B9F
monochromatic
#362B09 #6B5512 #9F7E1B #D3A724 #E2BE53

Accessibility & contrast

On white

3.84
#9F7E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#9F7E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F7E1B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F7E1B#FFFFFF#000000##000000
##9F7E1B1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#AD726C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9f7e1b;
/* rgb */ color: rgb(159, 126, 27);
/* oklch */ color: oklch(60.8% 0.116 88.6);
Tailwind
colors: {
  custom: {
    50: '#c0a361',
    500: '#9f7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #9f7e1b;
$custom-light: #c0a361;
$custom-dark: #000000;
JSON
{
  "hex": "#9f7e1b",
  "rgb": {
    "r": 159,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 45,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60831,
    "c": 0.11595,
    "h": 88.6
  },
  "luminance": 0.22372
}

Semantic roles & 50–950 ramp

primary
#9F7E1B
secondary
#516EC5
accent
#67EE3A
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9F7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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