#838D1D#838D1D

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

Color values

HEX#838D1D
RGBrgb(131, 141, 29)
HSLhsl(65, 66%, 33%)
HSVhsv(65, 79%, 55%)
CMYKcmyk(7.1%, 0%, 79.4%, 44.7%)
CIE-LABlab(56.05, -17.67, 53.67)
CIE-LCHlch(56.05, 56.50, 108.22°)
OKLaboklab(61.51% -0.0543 0.1173)
OKLCHoklch(61.51% 0.129 114.8)
XYZxyz(19.1073, 23.9641, 4.7811)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D1D #271D8D
analogous
#8D5F1D #838D1D #4B8D1D
triadic
#838D1D #1D838D #8D1D83
tetradic
#838D1D #1D8D5F #271D8D #8D1D4B
square
#838D1D #1D8D5F #271D8D #8D1D4B
split-complementary
#838D1D #1D4B8D #5F1D8D
monochromatic
#252708 #545A13 #838D1D #B2C027 #CDDA4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838D1D#FFFFFF#000000##000000
##838D1D1.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)
#988600
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#8C8478
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838d1d;
/* rgb */ color: rgb(131, 141, 29);
/* oklch */ color: oklch(61.5% 0.129 114.8);
Tailwind
colors: {
  custom: {
    50: '#aaae64',
    500: '#838d1d',
    950: '#000000',
  },
}
SCSS
$custom: #838d1d;
$custom-light: #aaae64;
$custom-dark: #000000;
JSON
{
  "hex": "#838d1d",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 65.357,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61509,
    "c": 0.12923,
    "h": 114.8
  },
  "luminance": 0.23964
}

Semantic roles & 50–950 ramp

primary
#838D1D
secondary
#544ABC
accent
#3FE94E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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