#9D841F#9D841F

#9D841F is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.117 H 94.1°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9D841F
RGBrgb(157, 132, 31)
HSLhsl(48, 67%, 37%)
HSVhsv(48, 80%, 62%)
CMYKcmyk(0%, 15.9%, 80.3%, 38.4%)
CIE-LABlab(55.86, -0.87, 53.71)
CIE-LCHlch(55.86, 53.72, 90.92°)
OKLaboklab(61.92% -0.0084 0.1166)
OKLCHoklch(61.92% 0.117 94.1)
XYZxyz(22.4045, 23.7709, 4.7042)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D841F #1F389D
analogous
#9D451F #9D841F #779D1F
triadic
#9D841F #1F9D84 #841F9D
tetradic
#9D841F #1F9D45 #1F389D #9D1F77
square
#9D841F #1F9D45 #1F389D #9D1F77
split-complementary
#9D841F #1F779D #451F9D
monochromatic
#372E0B #6A5915 #9D841F #D0AF29 #DEC458

Accessibility & contrast

On white

3.65
#9D841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#9D841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D841F
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D841F#FFFFFF#000000##000000
##9D841F1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938207
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#AA7971
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9d841f;
/* rgb */ color: rgb(157, 132, 31);
/* oklch */ color: oklch(61.9% 0.117 94.1);
Tailwind
colors: {
  custom: {
    50: '#bea764',
    500: '#9d841f',
    950: '#000000',
  },
}
SCSS
$custom: #9d841f;
$custom-light: #bea764;
$custom-dark: #000000;
JSON
{
  "hex": "#9d841f",
  "rgb": {
    "r": 157,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 48.095,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61923,
    "c": 0.11693,
    "h": 94.1
  },
  "luminance": 0.2377
}

Semantic roles & 50–950 ramp

primary
#9D841F
secondary
#566BC2
accent
#60EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D841F

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

Preview Lab → · Contrast checker → · Palette generator →

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