#8D8F28#8D8F28

#8D8F28 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 62.9% C 0.122 H 110.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8D8F28
RGBrgb(141, 143, 40)
HSLhsl(61, 56%, 36%)
HSVhsv(61, 72%, 56%)
CMYKcmyk(1.4%, 0%, 72%, 43.9%)
CIE-LABlab(57.52, -13.72, 51.49)
CIE-LCHlch(57.52, 53.28, 104.92°)
OKLaboklab(62.91% -0.0429 0.1143)
OKLCHoklch(62.91% 0.122 110.6)
XYZxyz(21.1907, 25.4614, 5.8054)
Luminance0.2546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8F28 #2A288F
analogous
#8F5D28 #8D8F28 #598F28
triadic
#8D8F28 #288D8F #8F288D
tetradic
#8D8F28 #288F5D #2A288F #8F2859
square
#8D8F28 #288F5D #2A288F #8F2859
split-complementary
#8D8F28 #28598F #5D288F
monochromatic
#2F2F0D #5E5F1B #8D8F28 #BCBF35 #D0D25F

Accessibility & contrast

On white

3.45
#8D8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#8D8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8F28
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8F28#FFFFFF#000000##000000
##8D8F281.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8916
Deuteranopia (green-blind)
#9B8C30
Tritanopia (blue-blind)
#97867B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8d8f28;
/* rgb */ color: rgb(141, 143, 40);
/* oklch */ color: oklch(62.9% 0.122 110.6);
Tailwind
colors: {
  custom: {
    50: '#b1af69',
    500: '#8d8f28',
    950: '#000000',
  },
}
SCSS
$custom: #8d8f28;
$custom-light: #b1af69;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8f28",
  "rgb": {
    "r": 141,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 61.165,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6291,
    "c": 0.12211,
    "h": 110.6
  },
  "luminance": 0.25461
}

Semantic roles & 50–950 ramp

primary
#8D8F28
secondary
#5D5BB8
accent
#48E04B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8D8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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