#8D8927#8D8927

#8D8927 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.117 H 107.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8D8927
RGBrgb(141, 137, 39)
HSLhsl(58, 57%, 35%)
HSVhsv(58, 72%, 55%)
CMYKcmyk(0%, 2.8%, 72.3%, 44.7%)
CIE-LABlab(55.79, -10.57, 50.18)
CIE-LCHlch(55.79, 51.28, 101.89°)
OKLaboklab(61.52% -0.0341 0.1114)
OKLCHoklch(61.52% 0.117 107)
XYZxyz(20.2972, 23.7012, 5.4247)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8927 #272B8D
analogous
#8D5627 #8D8927 #5E8D27
triadic
#8D8927 #278D89 #89278D
tetradic
#8D8927 #278D56 #272B8D #8D275E
square
#8D8927 #278D56 #272B8D #8D275E
split-complementary
#8D8927 #275E8D #56278D
monochromatic
#2D2C0C #5D5A1A #8D8927 #BDB834 #D2CD5C

Accessibility & contrast

On white

3.66
#8D8927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8D8927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8927
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8927#FFFFFF#000000##000000
##8D89271.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#958416
Deuteranopia (green-blind)
#97872E
Tritanopia (blue-blind)
#978076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d8927;
/* rgb */ color: rgb(141, 137, 39);
/* oklch */ color: oklch(61.5% 0.117 107.0);
Tailwind
colors: {
  custom: {
    50: '#b1ab68',
    500: '#8d8927',
    950: '#000000',
  },
}
SCSS
$custom: #8d8927;
$custom-light: #b1ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8927",
  "rgb": {
    "r": 141,
    "g": 137,
    "b": 39
  },
  "hsl": {
    "h": 57.647,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61523,
    "c": 0.11651,
    "h": 107
  },
  "luminance": 0.23701
}

Semantic roles & 50–950 ramp

primary
#8D8927
secondary
#595CB7
accent
#4EE048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8927

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

Preview Lab → · Contrast checker → · Palette generator →

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