#838D17#838D17

#838D17 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.5% C 0.132 H 114.8°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#838D17
RGBrgb(131, 141, 23)
HSLhsl(65, 72%, 32%)
HSVhsv(65, 84%, 55%)
CMYKcmyk(7.1%, 0%, 83.7%, 44.7%)
CIE-LABlab(56.02, -17.89, 55.40)
CIE-LCHlch(56.02, 58.22, 107.90°)
OKLaboklab(61.48% -0.0554 0.1199)
OKLCHoklch(61.48% 0.132 114.8)
XYZxyz(19.0402, 23.9373, 4.4278)
Luminance0.2394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D17 #21178D
analogous
#8D5C17 #838D17 #488D17
triadic
#838D17 #17838D #8D1783
tetradic
#838D17 #178D5C #21178D #8D1748
square
#838D17 #178D5C #21178D #8D1748
split-complementary
#838D17 #17488D #5C178D
monochromatic
#212406 #52580E #838D17 #B4C220 #D2E03F

Accessibility & contrast

On white

3.63
#838D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#838D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D17
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D17#FFFFFF#000000##000000
##838D171.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#8C8478
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838d17;
/* rgb */ color: rgb(131, 141, 23);
/* oklch */ color: oklch(61.5% 0.132 114.8);
Tailwind
colors: {
  custom: {
    50: '#abae61',
    500: '#838d17',
    950: '#000000',
  },
}
SCSS
$custom: #838d17;
$custom-light: #abae61;
$custom-dark: #000000;
JSON
{
  "hex": "#838d17",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 65.085,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61479,
    "c": 0.13207,
    "h": 114.8
  },
  "luminance": 0.23937
}

Semantic roles & 50–950 ramp

primary
#838D17
secondary
#4B40C0
accent
#39EF49
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #838D17

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

Preview Lab → · Contrast checker → · Palette generator →

#838D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva