#8F8A1C#8F8A1C

#8F8A1C 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#8F8A1C
RGBrgb(143, 138, 28)
HSLhsl(57, 67%, 34%)
HSVhsv(57, 80%, 56%)
CMYKcmyk(0%, 3.5%, 80.4%, 43.9%)
CIE-LABlab(56.19, -10.69, 54.49)
CIE-LCHlch(56.19, 55.52, 101.10°)
OKLaboklab(61.87% -0.0356 0.1183)
OKLCHoklch(61.87% 0.124 106.8)
XYZxyz(20.6266, 24.1012, 4.6639)
Luminance0.2410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A1C #1C218F
analogous
#8F501C #8F8A1C #5A8F1C
triadic
#8F8A1C #1C8F8A #8A1C8F
tetradic
#8F8A1C #1C8F50 #1C218F #8F1C5A
square
#8F8A1C #1C8F50 #1C218F #8F1C5A
split-complementary
#8F8A1C #1C5A8F #501C8F
monochromatic
#292708 #5C5912 #8F8A1C #C2BB26 #DCD54A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8A1C#FFFFFF#000000##000000
##8F8A1C1.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: #8f8a1c;
/* rgb */ color: rgb(143, 138, 28);
/* oklch */ color: oklch(61.9% 0.124 106.8);
Tailwind
colors: {
  custom: {
    50: '#b3ab63',
    500: '#8f8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a1c;
$custom-light: #b3ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a1c",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 57.391,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61866,
    "c": 0.12359,
    "h": 106.8
  },
  "luminance": 0.241
}

Semantic roles & 50–950 ramp

primary
#8F8A1C
secondary
#494EBE
accent
#45EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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