#8D831F#8D831F

#8D831F is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.1% C 0.116 H 103.4°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8D831F
RGBrgb(141, 131, 31)
HSLhsl(55, 64%, 34%)
HSVhsv(55, 78%, 55%)
CMYKcmyk(0%, 7.1%, 78%, 44.7%)
CIE-LABlab(54.02, -7.69, 51.47)
CIE-LCHlch(54.02, 52.04, 98.49°)
OKLaboklab(60.1% -0.0268 0.1126)
OKLCHoklch(60.1% 0.116 103.4)
XYZxyz(19.3490, 21.9951, 4.5223)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D831F #1F298D
analogous
#8D4C1F #8D831F #608D1F
triadic
#8D831F #1F8D83 #831F8D
tetradic
#8D831F #1F8D4C #1F298D #8D1F60
square
#8D831F #1F8D4C #1F298D #8D1F60
split-complementary
#8D831F #1F608D #4C1F8D
monochromatic
#292609 #5B5414 #8D831F #BFB22A #D8CC4E

Accessibility & contrast

On white

3.89
#8D831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8D831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D831F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D831F#FFFFFF#000000##000000
##8D831F1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E08
Deuteranopia (green-blind)
#938327
Tritanopia (blue-blind)
#987970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8d831f;
/* rgb */ color: rgb(141, 131, 31);
/* oklch */ color: oklch(60.1% 0.116 103.4);
Tailwind
colors: {
  custom: {
    50: '#b2a663',
    500: '#8d831f',
    950: '#000000',
  },
}
SCSS
$custom: #8d831f;
$custom-light: #b2a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8d831f",
  "rgb": {
    "r": 141,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 54.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60101,
    "c": 0.11573,
    "h": 103.4
  },
  "luminance": 0.21994
}

Semantic roles & 50–950 ramp

primary
#8D831F
secondary
#4D57BB
accent
#50E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D831F

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

Preview Lab → · Contrast checker → · Palette generator →

#8D831F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva