#8D9838#8D9838

#8D9838 is a light, vivid yellow. Relative luminance 0.284; OKLCH L 65.1% C 0.120 H 115.3°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#8D9838
RGBrgb(141, 152, 56)
HSLhsl(67, 46%, 41%)
HSVhsv(67, 63%, 60%)
CMYKcmyk(7.2%, 0%, 63.2%, 40.4%)
CIE-LABlab(60.25, -17.43, 47.65)
CIE-LCHlch(60.25, 50.74, 110.09°)
OKLaboklab(65.14% -0.0516 0.1089)
OKLCHoklch(65.14% 0.12 115.3)
XYZxyz(22.9271, 28.4051, 8.0156)
Luminance0.2841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D9838 #433898
analogous
#987338 #8D9838 #5D9838
triadic
#8D9838 #388D98 #98388D
tetradic
#8D9838 #389873 #433898 #98385D
square
#8D9838 #389873 #433898 #98385D
split-complementary
#8D9838 #385D98 #733898
monochromatic
#3A3F17 #646B28 #8D9838 #B1BE4F #C5CF7C

Accessibility & contrast

On white

3.14
#8D9838 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#8D9838 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D9838
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D9838#FFFFFF#000000##000000
##8D98381.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2912C
Deuteranopia (green-blind)
#A2923E
Tritanopia (blue-blind)
#969084
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8d9838;
/* rgb */ color: rgb(141, 152, 56);
/* oklch */ color: oklch(65.1% 0.120 115.3);
Tailwind
colors: {
  custom: {
    50: '#b1b673',
    500: '#8d9838',
    950: '#000000',
  },
}
SCSS
$custom: #8d9838;
$custom-light: #b1b673;
$custom-dark: #000000;
JSON
{
  "hex": "#8d9838",
  "rgb": {
    "r": 141,
    "g": 152,
    "b": 56
  },
  "hsl": {
    "h": 66.875,
    "s": 46.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.65135,
    "c": 0.12046,
    "h": 115.3
  },
  "luminance": 0.28405
}

Semantic roles & 50–950 ramp

primary
#8D9838
secondary
#7C74B8
accent
#52D661
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8D9838

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

Preview Lab → · Contrast checker → · Palette generator →

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