#8F8A42#8F8A42

#8F8A42 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.2% C 0.094 H 105.2°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#8F8A42
RGBrgb(143, 138, 66)
HSLhsl(56, 37%, 41%)
HSVhsv(56, 54%, 56%)
CMYKcmyk(0%, 3.5%, 53.8%, 43.9%)
CIE-LABlab(56.50, -8.31, 38.73)
CIE-LCHlch(56.50, 39.61, 102.11°)
OKLaboklab(62.21% -0.0247 0.091)
OKLCHoklch(62.21% 0.094 105.2)
XYZxyz(21.4001, 24.4106, 8.7376)
Luminance0.2441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A42 #42478F
analogous
#8F6342 #8F8A42 #6D8F42
triadic
#8F8A42 #428F8A #8A428F
tetradic
#8F8A42 #428F63 #42478F #8F426D
square
#8F8A42 #428F63 #42478F #8F426D
split-complementary
#8F8A42 #426D8F #63428F
monochromatic
#3B391B #65622F #8F8A42 #B3AE5B #C7C285

Accessibility & contrast

On white

3.57
#8F8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#8F8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A42
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A42#FFFFFF#000000##000000
##8F8A421.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94863B
Deuteranopia (green-blind)
#968946
Tritanopia (blue-blind)
#98827A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a42;
/* rgb */ color: rgb(143, 138, 66);
/* oklch */ color: oklch(62.2% 0.094 105.2);
Tailwind
colors: {
  custom: {
    50: '#b2ac78',
    500: '#8f8a42',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a42;
$custom-light: #b2ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a42",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 56.104,
    "s": 36.842,
    "l": 40.98
  },
  "oklch": {
    "l": 0.62209,
    "c": 0.09428,
    "h": 105.2
  },
  "luminance": 0.2441
}

Semantic roles & 50–950 ramp

primary
#8F8A42
secondary
#7B7FB1
accent
#62CD5B
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8F8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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