#9C821F#9C821F

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

Color values

HEX#9C821F
RGBrgb(156, 130, 31)
HSLhsl(48, 67%, 37%)
HSVhsv(48, 80%, 61%)
CMYKcmyk(0%, 16.7%, 80.1%, 38.8%)
CIE-LABlab(55.21, -0.21, 53.09)
CIE-LCHlch(55.21, 53.09, 90.23°)
OKLaboklab(61.39% -0.0065 0.1153)
OKLCHoklch(61.39% 0.116 93.2)
XYZxyz(21.9415, 23.1334, 4.6056)
Luminance0.2313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C821F #1F399C
analogous
#9C441F #9C821F #789C1F
triadic
#9C821F #1F9C82 #821F9C
tetradic
#9C821F #1F9C44 #1F399C #9C1F78
square
#9C821F #1F9C44 #1F399C #9C1F78
split-complementary
#9C821F #1F789C #441F9C
monochromatic
#362D0B #695715 #9C821F #CFAD29 #DEC258

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C821F#FFFFFF#000000##000000
##9C821F1.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)
#918008
Deuteranopia (green-blind)
#978725
Tritanopia (blue-blind)
#A9776F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9c821f;
/* rgb */ color: rgb(156, 130, 31);
/* oklch */ color: oklch(61.4% 0.116 93.2);
Tailwind
colors: {
  custom: {
    50: '#bda564',
    500: '#9c821f',
    950: '#000000',
  },
}
SCSS
$custom: #9c821f;
$custom-light: #bda564;
$custom-dark: #000000;
JSON
{
  "hex": "#9c821f",
  "rgb": {
    "r": 156,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 47.52,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61388,
    "c": 0.11551,
    "h": 93.2
  },
  "luminance": 0.23132
}

Semantic roles & 50–950 ramp

primary
#9C821F
secondary
#556CC1
accent
#62EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C821F

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

Preview Lab → · Contrast checker → · Palette generator →

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