#8F8A2A#8F8A2A

#8F8A2A is a mid, moderate yellow. Relative luminance 0.242; OKLCH L 62.0% C 0.115 H 106.4°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8F8A2A
RGBrgb(143, 138, 42)
HSLhsl(57, 55%, 36%)
HSVhsv(57, 71%, 56%)
CMYKcmyk(0%, 3.5%, 70.6%, 43.9%)
CIE-LABlab(56.27, -10.04, 49.53)
CIE-LCHlch(56.27, 50.53, 101.46°)
OKLaboklab(61.96% -0.0324 0.1105)
OKLCHoklch(61.96% 0.115 106.4)
XYZxyz(20.8349, 24.1845, 5.7606)
Luminance0.2418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A2A #2A2F8F
analogous
#8F582A #8F8A2A #628F2A
triadic
#8F8A2A #2A8F8A #8A2A8F
tetradic
#8F8A2A #2A8F58 #2A2F8F #8F2A62
square
#8F8A2A #2A8F58 #2A2F8F #8F2A62
split-complementary
#8F8A2A #2A628F #582A8F
monochromatic
#302F0E #605C1C #8F8A2A #BEB838 #D1CC62

Accessibility & contrast

On white

3.60
#8F8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8F8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A2A
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A2A#FFFFFF#000000##000000
##8F8A2A1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96851B
Deuteranopia (green-blind)
#988930
Tritanopia (blue-blind)
#9A8177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a2a;
/* rgb */ color: rgb(143, 138, 42);
/* oklch */ color: oklch(62.0% 0.115 106.4);
Tailwind
colors: {
  custom: {
    50: '#b3ab6a',
    500: '#8f8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a2a;
$custom-light: #b3ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a2a",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 57.03,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61959,
    "c": 0.11516,
    "h": 106.4
  },
  "luminance": 0.24184
}

Semantic roles & 50–950 ramp

primary
#8F8A2A
secondary
#5E62B7
accent
#51DE4A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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