#8F8B31#8F8B31

#8F8B31 is a light, moderate yellow. Relative luminance 0.245; OKLCH L 62.2% C 0.111 H 106.8°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8F8B31
RGBrgb(143, 139, 49)
HSLhsl(57, 49%, 38%)
HSVhsv(57, 66%, 56%)
CMYKcmyk(0%, 2.8%, 65.7%, 43.9%)
CIE-LABlab(56.61, -10.16, 46.92)
CIE-LCHlch(56.61, 48.01, 102.22°)
OKLaboklab(62.25% -0.032 0.1062)
OKLCHoklch(62.25% 0.111 106.8)
XYZxyz(21.1154, 24.5273, 6.5271)
Luminance0.2453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8B31 #31358F
analogous
#8F5C31 #8F8B31 #648F31
triadic
#8F8B31 #318F8B #8B318F
tetradic
#8F8B31 #318F5C #31358F #8F3164
square
#8F8B31 #318F5C #31358F #8F3164
split-complementary
#8F8B31 #31648F #5C318F
monochromatic
#343212 #615F21 #8F8B31 #BDB741 #CDC96D

Accessibility & contrast

On white

3.56
#8F8B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#8F8B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8B31
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8B31#FFFFFF#000000##000000
##8F8B311.003.565.915.91
#FFFFFF3.561.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978625
Deuteranopia (green-blind)
#988937
Tritanopia (blue-blind)
#998278
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8f8b31;
/* rgb */ color: rgb(143, 139, 49);
/* oklch */ color: oklch(62.2% 0.111 106.8);
Tailwind
colors: {
  custom: {
    50: '#b2ac6e',
    500: '#8f8b31',
    950: '#000000',
  },
}
SCSS
$custom: #8f8b31;
$custom-light: #b2ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8b31",
  "rgb": {
    "r": 143,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 57.447,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62247,
    "c": 0.11092,
    "h": 106.8
  },
  "luminance": 0.24527
}

Semantic roles & 50–950 ramp

primary
#8F8B31
secondary
#676AB5
accent
#55D94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8F8B31

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

Preview Lab → · Contrast checker → · Palette generator →

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