#9B821F#9B821F

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

Color values

HEX#9B821F
RGBrgb(155, 130, 31)
HSLhsl(48, 67%, 36%)
HSVhsv(48, 80%, 61%)
CMYKcmyk(0%, 16.1%, 80%, 39.2%)
CIE-LABlab(55.11, -0.68, 52.96)
CIE-LCHlch(55.11, 52.96, 90.73°)
OKLaboklab(61.28% -0.0078 0.1151)
OKLCHoklch(61.28% 0.115 93.9)
XYZxyz(21.7488, 23.0340, 4.5965)
Luminance0.2303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B821F #1F389B
analogous
#9B441F #9B821F #769B1F
triadic
#9B821F #1F9B82 #821F9B
tetradic
#9B821F #1F9B44 #1F389B #9B1F76
square
#9B821F #1F9B44 #1F389B #9B1F76
split-complementary
#9B821F #1F769B #441F9B
monochromatic
#352C0B #685715 #9B821F #CEAD29 #DDC257

Accessibility & contrast

On white

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

On black

5.61
#9B821F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B821F
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B821F#FFFFFF#000000##000000
##9B821F1.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#978726
Tritanopia (blue-blind)
#A8776F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9b821f;
/* rgb */ color: rgb(155, 130, 31);
/* oklch */ color: oklch(61.3% 0.115 93.9);
Tailwind
colors: {
  custom: {
    50: '#bda564',
    500: '#9b821f',
    950: '#000000',
  },
}
SCSS
$custom: #9b821f;
$custom-light: #bda564;
$custom-dark: #000000;
JSON
{
  "hex": "#9b821f",
  "rgb": {
    "r": 155,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 47.903,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61283,
    "c": 0.11536,
    "h": 93.9
  },
  "luminance": 0.23033
}

Semantic roles & 50–950 ramp

primary
#9B821F
secondary
#556BC1
accent
#61EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B821F

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

Preview Lab → · Contrast checker → · Palette generator →

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