#8D9228#8D9228

#8D9228 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.6% C 0.125 H 112.2°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8D9228
RGBrgb(141, 146, 40)
HSLhsl(63, 57%, 36%)
HSVhsv(63, 73%, 57%)
CMYKcmyk(3.4%, 0%, 72.6%, 42.7%)
CIE-LABlab(58.39, -15.30, 52.33)
CIE-LCHlch(58.39, 54.52, 106.30°)
OKLaboklab(63.6% -0.0473 0.1161)
OKLCHoklch(63.6% 0.125 112.2)
XYZxyz(21.6471, 26.3742, 5.9575)
Luminance0.2637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D9228 #2D2892
analogous
#926228 #8D9228 #589228
triadic
#8D9228 #288D92 #92288D
tetradic
#8D9228 #289262 #2D2892 #922858
square
#8D9228 #289262 #2D2892 #922858
split-complementary
#8D9228 #285892 #622892
monochromatic
#30320E #5F621B #8D9228 #BBC235 #CED461

Accessibility & contrast

On white

3.35
#8D9228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#8D9228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D9228
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D9228#FFFFFF#000000##000000
##8D92281.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B15
Deuteranopia (green-blind)
#9E8E30
Tritanopia (blue-blind)
#97897D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8d9228;
/* rgb */ color: rgb(141, 146, 40);
/* oklch */ color: oklch(63.6% 0.125 112.2);
Tailwind
colors: {
  custom: {
    50: '#b1b16a',
    500: '#8d9228',
    950: '#000000',
  },
}
SCSS
$custom: #8d9228;
$custom-light: #b1b16a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d9228",
  "rgb": {
    "r": 141,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 62.83,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63604,
    "c": 0.12539,
    "h": 112.2
  },
  "luminance": 0.26374
}

Semantic roles & 50–950 ramp

primary
#8D9228
secondary
#615DB9
accent
#48E04F
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8D9228

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

Preview Lab → · Contrast checker → · Palette generator →

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