#8D8922#8D8922

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

Color values

HEX#8D8922
RGBrgb(141, 137, 34)
HSLhsl(58, 61%, 34%)
HSVhsv(58, 76%, 55%)
CMYKcmyk(0%, 2.8%, 75.9%, 44.7%)
CIE-LABlab(55.76, -10.81, 52.02)
CIE-LCHlch(55.76, 53.13, 101.74°)
OKLaboklab(61.49% -0.0353 0.1143)
OKLCHoklch(61.49% 0.12 107.2)
XYZxyz(20.2197, 23.6702, 5.0168)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8922 #22268D
analogous
#8D5422 #8D8922 #5C8D22
triadic
#8D8922 #228D89 #89228D
tetradic
#8D8922 #228D54 #22268D #8D225C
square
#8D8922 #228D54 #22268D #8D225C
split-complementary
#8D8922 #225C8D #54228D
monochromatic
#2A290A #5C5916 #8D8922 #BEB92E #D6D154

Accessibility & contrast

On white

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

On black

5.73
#8D8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8922
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8922#FFFFFF#000000##000000
##8D89221.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#95830C
Deuteranopia (green-blind)
#97872A
Tritanopia (blue-blind)
#988075
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d8922;
/* rgb */ color: rgb(141, 137, 34);
/* oklch */ color: oklch(61.5% 0.120 107.2);
Tailwind
colors: {
  custom: {
    50: '#b2ab66',
    500: '#8d8922',
    950: '#000000',
  },
}
SCSS
$custom: #8d8922;
$custom-light: #b2ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8922",
  "rgb": {
    "r": 141,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 57.757,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61488,
    "c": 0.11967,
    "h": 107.2
  },
  "luminance": 0.2367
}

Semantic roles & 50–950 ramp

primary
#8D8922
secondary
#5155B9
accent
#4AE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8922

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

Preview Lab → · Contrast checker → · Palette generator →

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