#8D9828#8D9828

#8D9828 is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.0% C 0.132 H 115.1°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#8D9828
RGBrgb(141, 152, 40)
HSLhsl(66, 58%, 38%)
HSVhsv(66, 74%, 60%)
CMYKcmyk(7.2%, 0%, 73.7%, 40.4%)
CIE-LABlab(60.13, -18.42, 54.02)
CIE-LCHlch(60.13, 57.07, 108.83°)
OKLaboklab(65% -0.056 0.1197)
OKLCHoklch(65% 0.132 115.1)
XYZxyz(22.5964, 28.2728, 6.2739)
Luminance0.2827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D9828 #332898
analogous
#986B28 #8D9828 #559828
triadic
#8D9828 #288D98 #98288D
tetradic
#8D9828 #28986B #332898 #982855
square
#8D9828 #28986B #332898 #982855
split-complementary
#8D9828 #285598 #6B2898
monochromatic
#33370F #60681B #8D9828 #BAC835 #CBD664

Accessibility & contrast

On white

3.16
#8D9828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#8D9828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D9828
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D9828#FFFFFF#000000##000000
##8D98281.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39012
Deuteranopia (green-blind)
#A29231
Tritanopia (blue-blind)
#968F82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8d9828;
/* rgb */ color: rgb(141, 152, 40);
/* oklch */ color: oklch(65.0% 0.132 115.1);
Tailwind
colors: {
  custom: {
    50: '#b1b66a',
    500: '#8d9828',
    950: '#000000',
  },
}
SCSS
$custom: #8d9828;
$custom-light: #b1b66a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d9828",
  "rgb": {
    "r": 141,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 65.893,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.65002,
    "c": 0.13212,
    "h": 115.1
  },
  "luminance": 0.28272
}

Semantic roles & 50–950 ramp

primary
#8D9828
secondary
#6960BC
accent
#46E256
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8D9828

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

Preview Lab → · Contrast checker → · Palette generator →

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