#8F8A1B#8F8A1B

#8F8A1B is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.124 H 106.8°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8F8A1B
RGBrgb(143, 138, 27)
HSLhsl(57, 68%, 33%)
HSVhsv(57, 81%, 56%)
CMYKcmyk(0%, 3.5%, 81.1%, 43.9%)
CIE-LABlab(56.18, -10.73, 54.79)
CIE-LCHlch(56.18, 55.83, 101.08°)
OKLaboklab(61.86% -0.0358 0.1188)
OKLCHoklch(61.86% 0.124 106.8)
XYZxyz(20.6149, 24.0965, 4.6019)
Luminance0.2410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A1B #1B208F
analogous
#8F501B #8F8A1B #5A8F1B
triadic
#8F8A1B #1B8F8A #8A1B8F
tetradic
#8F8A1B #1B8F50 #1B208F #8F1B5A
square
#8F8A1B #1B8F50 #1B208F #8F1B5A
split-complementary
#8F8A1B #1B5A8F #501B8F
monochromatic
#282708 #5C5811 #8F8A1B #C2BC25 #DCD648

Accessibility & contrast

On white

3.61
#8F8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#8F8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A1B
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A1B#FFFFFF#000000##000000
##8F8A1B1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#998925
Tritanopia (blue-blind)
#9A8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a1b;
/* rgb */ color: rgb(143, 138, 27);
/* oklch */ color: oklch(61.9% 0.124 106.8);
Tailwind
colors: {
  custom: {
    50: '#b3ab63',
    500: '#8f8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a1b;
$custom-light: #b3ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a1b",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 57.414,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61861,
    "c": 0.12408,
    "h": 106.8
  },
  "luminance": 0.24096
}

Semantic roles & 50–950 ramp

primary
#8F8A1B
secondary
#484DBE
accent
#44EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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