#8F8A2B#8F8A2B

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

Color values

HEX#8F8A2B
RGBrgb(143, 138, 43)
HSLhsl(57, 54%, 36%)
HSVhsv(57, 70%, 56%)
CMYKcmyk(0%, 3.5%, 69.9%, 43.9%)
CIE-LABlab(56.28, -9.98, 49.13)
CIE-LCHlch(56.28, 50.13, 101.49°)
OKLaboklab(61.97% -0.0322 0.1098)
OKLCHoklch(61.97% 0.114 106.3)
XYZxyz(20.8530, 24.1917, 5.8561)
Luminance0.2419 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A2B #2B308F
analogous
#8F582B #8F8A2B #628F2B
triadic
#8F8A2B #2B8F8A #8A2B8F
tetradic
#8F8A2B #2B8F58 #2B308F #8F2B62
square
#8F8A2B #2B8F58 #2B308F #8F2B62
split-complementary
#8F8A2B #2B628F #582B8F
monochromatic
#312F0F #605D1D #8F8A2B #BEB739 #D0CB64

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8A2B#FFFFFF#000000##000000
##8F8A2B1.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)
#96851D
Deuteranopia (green-blind)
#988931
Tritanopia (blue-blind)
#9A8177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a2b;
/* rgb */ color: rgb(143, 138, 43);
/* oklch */ color: oklch(62.0% 0.114 106.3);
Tailwind
colors: {
  custom: {
    50: '#b3ab6a',
    500: '#8f8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a2b;
$custom-light: #b3ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a2b",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 57,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61967,
    "c": 0.11446,
    "h": 106.3
  },
  "luminance": 0.24191
}

Semantic roles & 50–950 ramp

primary
#8F8A2B
secondary
#5F64B7
accent
#52DD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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