#8F8A31#8F8A31

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

Color values

HEX#8F8A31
RGBrgb(143, 138, 49)
HSLhsl(57, 49%, 38%)
HSVhsv(57, 66%, 56%)
CMYKcmyk(0%, 3.5%, 65.7%, 43.9%)
CIE-LABlab(56.33, -9.62, 46.62)
CIE-LCHlch(56.33, 47.60, 101.66°)
OKLaboklab(62.02% -0.0305 0.1056)
OKLCHoklch(62.02% 0.11 106.1)
XYZxyz(20.9713, 24.2391, 6.4791)
Luminance0.2424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A31 #31368F
analogous
#8F5B31 #8F8A31 #658F31
triadic
#8F8A31 #318F8A #8A318F
tetradic
#8F8A31 #318F5B #31368F #8F3165
square
#8F8A31 #318F5B #31368F #8F3165
split-complementary
#8F8A31 #31658F #5B318F
monochromatic
#343212 #615E21 #8F8A31 #BDB641 #CDC86D

Accessibility & contrast

On white

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

On black

5.85
#8F8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A31
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A31#FFFFFF#000000##000000
##8F8A311.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968526
Deuteranopia (green-blind)
#988936
Tritanopia (blue-blind)
#998178
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a31;
/* rgb */ color: rgb(143, 138, 49);
/* oklch */ color: oklch(62.0% 0.110 106.1);
Tailwind
colors: {
  custom: {
    50: '#b2ab6e',
    500: '#8f8a31',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a31;
$custom-light: #b2ab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a31",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 56.809,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62019,
    "c": 0.10988,
    "h": 106.1
  },
  "luminance": 0.24238
}

Semantic roles & 50–950 ramp

primary
#8F8A31
secondary
#676BB5
accent
#57D94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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