#8F8A2F#8F8A2F

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

Color values

HEX#8F8A2F
RGBrgb(143, 138, 47)
HSLhsl(57, 51%, 37%)
HSVhsv(57, 67%, 56%)
CMYKcmyk(0%, 3.5%, 67.1%, 43.9%)
CIE-LABlab(56.31, -9.75, 47.47)
CIE-LCHlch(56.31, 48.46, 101.60°)
OKLaboklab(62% -0.0311 0.107)
OKLCHoklch(62% 0.111 106.2)
XYZxyz(20.9300, 24.2225, 6.2617)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A2F #2F348F
analogous
#8F5A2F #8F8A2F #648F2F
triadic
#8F8A2F #2F8F8A #8A2F8F
tetradic
#8F8A2F #2F8F5A #2F348F #8F2F64
square
#8F8A2F #2F8F5A #2F348F #8F2F64
split-complementary
#8F8A2F #2F648F #5A2F8F
monochromatic
#333111 #615E20 #8F8A2F #BDB63E #CEC96A

Accessibility & contrast

On white

3.59
#8F8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8A2F#FFFFFF#000000##000000
##8F8A2F1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968523
Deuteranopia (green-blind)
#988935
Tritanopia (blue-blind)
#998177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a2f;
/* rgb */ color: rgb(143, 138, 47);
/* oklch */ color: oklch(62.0% 0.111 106.2);
Tailwind
colors: {
  custom: {
    50: '#b3ab6d',
    500: '#8f8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a2f;
$custom-light: #b3ab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a2f",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 56.875,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62001,
    "c": 0.11146,
    "h": 106.2
  },
  "luminance": 0.24222
}

Semantic roles & 50–950 ramp

primary
#8F8A2F
secondary
#6569B5
accent
#55DA4E
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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