#8F8A2D#8F8A2D

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

Color values

HEX#8F8A2D
RGBrgb(143, 138, 45)
HSLhsl(57, 52%, 37%)
HSVhsv(57, 69%, 56%)
CMYKcmyk(0%, 3.5%, 68.5%, 43.9%)
CIE-LABlab(56.29, -9.87, 48.31)
CIE-LCHlch(56.29, 49.31, 101.54°)
OKLaboklab(61.98% -0.0316 0.1085)
OKLCHoklch(61.98% 0.113 106.3)
XYZxyz(20.8906, 24.2068, 6.0541)
Luminance0.2421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A2D #2D328F
analogous
#8F592D #8F8A2D #638F2D
triadic
#8F8A2D #2D8F8A #8A2D8F
tetradic
#8F8A2D #2D8F59 #2D328F #8F2D63
square
#8F8A2D #2D8F59 #2D328F #8F2D63
split-complementary
#8F8A2D #2D638F #592D8F
monochromatic
#323010 #605D1E #8F8A2D #BEB73C #CFCA67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8A2D#FFFFFF#000000##000000
##8F8A2D1.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)
#968520
Deuteranopia (green-blind)
#988933
Tritanopia (blue-blind)
#998177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a2d;
/* rgb */ color: rgb(143, 138, 45);
/* oklch */ color: oklch(62.0% 0.113 106.3);
Tailwind
colors: {
  custom: {
    50: '#b3ab6c',
    500: '#8f8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a2d;
$custom-light: #b3ab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a2d",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 56.939,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61983,
    "c": 0.11299,
    "h": 106.3
  },
  "luminance": 0.24206
}

Semantic roles & 50–950 ramp

primary
#8F8A2D
secondary
#6266B6
accent
#54DC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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