#9F7E18#9F7E18

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

Color values

HEX#9F7E18
RGBrgb(159, 126, 24)
HSLhsl(45, 74%, 36%)
HSVhsv(45, 85%, 62%)
CMYKcmyk(0%, 20.8%, 84.9%, 37.6%)
CIE-LABlab(54.41, 3.17, 54.77)
CIE-LCHlch(54.41, 54.86, 86.69°)
OKLaboklab(60.82% 0.0023 0.1173)
OKLCHoklch(60.82% 0.117 88.9)
XYZxyz(21.9252, 22.3601, 4.0251)
Luminance0.2236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F7E18 #18399F
analogous
#9F3A18 #9F7E18 #7C9F18
triadic
#9F7E18 #189F7E #7E189F
tetradic
#9F7E18 #189F3A #18399F #9F187C
square
#9F7E18 #189F3A #18399F #9F187C
split-complementary
#9F7E18 #187C9F #3A189F
monochromatic
#352A08 #6A5410 #9F7E18 #D4A820 #E4BF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F7E18#FFFFFF#000000##000000
##9F7E181.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)
#96861F
Tritanopia (blue-blind)
#AD726C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9f7e18;
/* rgb */ color: rgb(159, 126, 24);
/* oklch */ color: oklch(60.8% 0.117 88.9);
Tailwind
colors: {
  custom: {
    50: '#c0a360',
    500: '#9f7e18',
    950: '#000000',
  },
}
SCSS
$custom: #9f7e18;
$custom-light: #c0a360;
$custom-dark: #000000;
JSON
{
  "hex": "#9f7e18",
  "rgb": {
    "r": 159,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 45.333,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60816,
    "c": 0.11727,
    "h": 88.9
  },
  "luminance": 0.22359
}

Semantic roles & 50–950 ramp

primary
#9F7E18
secondary
#4D6AC6
accent
#65F037
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9F7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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