#8F841B#8F841B

#8F841B is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.5% C 0.119 H 103.0°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8F841B
RGBrgb(143, 132, 27)
HSLhsl(54, 68%, 33%)
HSVhsv(54, 81%, 56%)
CMYKcmyk(0%, 7.7%, 81.1%, 43.9%)
CIE-LABlab(54.47, -7.47, 53.28)
CIE-LCHlch(54.47, 53.80, 97.98°)
OKLaboklab(60.5% -0.0267 0.1155)
OKLCHoklch(60.5% 0.119 103)
XYZxyz(19.7777, 22.4222, 4.3228)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F841B #1B268F
analogous
#8F4A1B #8F841B #608F1B
triadic
#8F841B #1B8F84 #841B8F
tetradic
#8F841B #1B8F4A #1B268F #8F1B60
square
#8F841B #1B8F4A #1B268F #8F1B60
split-complementary
#8F841B #1B608F #4A1B8F
monochromatic
#282508 #5C5411 #8F841B #C2B425 #DCCE48

Accessibility & contrast

On white

3.83
#8F841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#8F841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F841B
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F841B#FFFFFF#000000##000000
##8F841B1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#948424
Tritanopia (blue-blind)
#9A7A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8f841b;
/* rgb */ color: rgb(143, 132, 27);
/* oklch */ color: oklch(60.5% 0.119 103.0);
Tailwind
colors: {
  custom: {
    50: '#b3a762',
    500: '#8f841b',
    950: '#000000',
  },
}
SCSS
$custom: #8f841b;
$custom-light: #b3a762;
$custom-dark: #000000;
JSON
{
  "hex": "#8f841b",
  "rgb": {
    "r": 143,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 54.31,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60497,
    "c": 0.11859,
    "h": 103
  },
  "luminance": 0.22421
}

Semantic roles & 50–950 ramp

primary
#8F841B
secondary
#4853BE
accent
#4DEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #8F841B

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

Preview Lab → · Contrast checker → · Palette generator →

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