#9F8115#9F8115

#9F8115 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.4% C 0.120 H 91.4°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9F8115
RGBrgb(159, 129, 21)
HSLhsl(47, 77%, 35%)
HSVhsv(47, 87%, 62%)
CMYKcmyk(0%, 18.9%, 86.8%, 37.6%)
CIE-LABlab(55.20, 1.41, 56.28)
CIE-LCHlch(55.20, 56.30, 88.57°)
OKLaboklab(61.44% -0.003 0.1199)
OKLCHoklch(61.44% 0.12 91.4)
XYZxyz(22.2851, 23.1270, 3.9995)
Luminance0.2313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8115 #15339F
analogous
#9F3C15 #9F8115 #789F15
triadic
#9F8115 #159F81 #81159F
tetradic
#9F8115 #159F3C #15339F #9F1578
square
#9F8115 #159F3C #15339F #9F1578
split-complementary
#9F8115 #15789F #3C159F
monochromatic
#332907 #69550E #9F8115 #D5AD1C #E7C448

Accessibility & contrast

On white

3.73
#9F8115 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#9F8115 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8115
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8115#FFFFFF#000000##000000
##9F81151.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#98881D
Tritanopia (blue-blind)
#AD756E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f8115;
/* rgb */ color: rgb(159, 129, 21);
/* oklch */ color: oklch(61.4% 0.120 91.4);
Tailwind
colors: {
  custom: {
    50: '#c0a55f',
    500: '#9f8115',
    950: '#000000',
  },
}
SCSS
$custom: #9f8115;
$custom-light: #c0a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8115",
  "rgb": {
    "r": 159,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 46.957,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.6144,
    "c": 0.11998,
    "h": 91.4
  },
  "luminance": 0.23126
}

Semantic roles & 50–950 ramp

primary
#9F8115
secondary
#4864C8
accent
#5EF335
background
#FCFAF5
surface
#F8F4EA
border
#D1CEC6
text
#130F05
muted
#827F79

Preview Lab

Preview with #9F8115

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

Preview Lab → · Contrast checker → · Palette generator →

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