#9C812F#9C812F

#9C812F is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 61.3% C 0.105 H 90.5°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9C812F
RGBrgb(156, 129, 47)
HSLhsl(45, 54%, 40%)
HSVhsv(45, 70%, 61%)
CMYKcmyk(0%, 17.3%, 69.9%, 38.8%)
CIE-LABlab(55.05, 1.11, 46.55)
CIE-LCHlch(55.05, 46.57, 88.64°)
OKLaboklab(61.29% -0.0009 0.1047)
OKLCHoklch(61.29% 0.105 90.5)
XYZxyz(22.0748, 22.9750, 5.9607)
Luminance0.2297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C812F #2F4A9C
analogous
#9C4B2F #9C812F #809C2F
triadic
#9C812F #2F9C81 #812F9C
tetradic
#9C812F #2F9C4B #2F4A9C #9C2F80
square
#9C812F #2F9C4B #2F4A9C #9C2F80
split-complementary
#9C812F #2F809C #4B2F9C
monochromatic
#3E3313 #6D5A21 #9C812F #C6A542 #D4BC71

Accessibility & contrast

On white

3.75
#9C812F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#9C812F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C812F
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C812F#FFFFFF#000000##000000
##9C812F1.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F24
Deuteranopia (green-blind)
#968733
Tritanopia (blue-blind)
#A97670
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9c812f;
/* rgb */ color: rgb(156, 129, 47);
/* oklch */ color: oklch(61.3% 0.105 90.5);
Tailwind
colors: {
  custom: {
    50: '#bda56c',
    500: '#9c812f',
    950: '#000000',
  },
}
SCSS
$custom: #9c812f;
$custom-light: #bda56c;
$custom-dark: #000000;
JSON
{
  "hex": "#9c812f",
  "rgb": {
    "r": 156,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 45.138,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.61294,
    "c": 0.10467,
    "h": 90.5
  },
  "luminance": 0.22974
}

Semantic roles & 50–950 ramp

primary
#9C812F
secondary
#6B7FBC
accent
#6FDD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9C812F

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

Preview Lab → · Contrast checker → · Palette generator →

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