#9F811C#9F811C

#9F811C is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.5% C 0.117 H 90.9°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9F811C
RGBrgb(159, 129, 28)
HSLhsl(46, 70%, 37%)
HSVhsv(46, 82%, 62%)
CMYKcmyk(0%, 18.9%, 82.4%, 37.6%)
CIE-LABlab(55.23, 1.62, 54.23)
CIE-LCHlch(55.23, 54.26, 88.29°)
OKLaboklab(61.47% -0.0018 0.117)
OKLCHoklch(61.47% 0.117 90.9)
XYZxyz(22.3593, 23.1567, 4.3904)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F811C #1C3A9F
analogous
#9F401C #9F811C #7B9F1C
triadic
#9F811C #1C9F81 #811C9F
tetradic
#9F811C #1C9F40 #1C3A9F #9F1C7B
square
#9F811C #1C9F40 #1C3A9F #9F1C7B
split-complementary
#9F811C #1C7B9F #401C9F
monochromatic
#372D0A #6B5713 #9F811C #D3AB25 #E1C154

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F811C#FFFFFF#000000##000000
##9F811C1.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)
#917F01
Deuteranopia (green-blind)
#988823
Tritanopia (blue-blind)
#AD756E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f811c;
/* rgb */ color: rgb(159, 129, 28);
/* oklch */ color: oklch(61.5% 0.117 90.9);
Tailwind
colors: {
  custom: {
    50: '#c0a562',
    500: '#9f811c',
    950: '#000000',
  },
}
SCSS
$custom: #9f811c;
$custom-light: #c0a562;
$custom-dark: #000000;
JSON
{
  "hex": "#9f811c",
  "rgb": {
    "r": 159,
    "g": 129,
    "b": 28
  },
  "hsl": {
    "h": 46.26,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61473,
    "c": 0.11699,
    "h": 90.9
  },
  "luminance": 0.23155
}

Semantic roles & 50–950 ramp

primary
#9F811C
secondary
#536DC4
accent
#64ED3B
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F811C

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

Preview Lab → · Contrast checker → · Palette generator →

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