#9F7F18#9F7F18

#9F7F18 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 61.0% C 0.118 H 89.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9F7F18
RGBrgb(159, 127, 24)
HSLhsl(46, 74%, 36%)
HSVhsv(46, 85%, 62%)
CMYKcmyk(0%, 20.1%, 84.9%, 37.6%)
CIE-LABlab(54.68, 2.61, 54.99)
CIE-LCHlch(54.68, 55.06, 87.28°)
OKLaboklab(61.03% 0.0007 0.1178)
OKLCHoklch(61.03% 0.118 89.7)
XYZxyz(22.0537, 22.6171, 4.0679)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F7F18 #18389F
analogous
#9F3C18 #9F7F18 #7B9F18
triadic
#9F7F18 #189F7F #7F189F
tetradic
#9F7F18 #189F3C #18389F #9F187B
square
#9F7F18 #189F3C #18389F #9F187B
split-complementary
#9F7F18 #187B9F #3C189F
monochromatic
#352A08 #6A5510 #9F7F18 #D4A920 #E4C04D

Accessibility & contrast

On white

3.80
#9F7F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#9F7F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F7F18
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F7F18#FFFFFF#000000##000000
##9F7F181.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#97861F
Tritanopia (blue-blind)
#AD736C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9f7f18;
/* rgb */ color: rgb(159, 127, 24);
/* oklch */ color: oklch(61.0% 0.118 89.7);
Tailwind
colors: {
  custom: {
    50: '#c0a360',
    500: '#9f7f18',
    950: '#000000',
  },
}
SCSS
$custom: #9f7f18;
$custom-light: #c0a360;
$custom-dark: #000000;
JSON
{
  "hex": "#9f7f18",
  "rgb": {
    "r": 159,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 45.778,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61028,
    "c": 0.11776,
    "h": 89.7
  },
  "luminance": 0.22616
}

Semantic roles & 50–950 ramp

primary
#9F7F18
secondary
#4D69C6
accent
#63F037
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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