#838D1B#838D1B

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

Color values

HEX#838D1B
RGBrgb(131, 141, 27)
HSLhsl(65, 68%, 33%)
HSVhsv(65, 81%, 55%)
CMYKcmyk(7.1%, 0%, 80.9%, 44.7%)
CIE-LABlab(56.04, -17.75, 54.28)
CIE-LCHlch(56.04, 57.10, 108.11°)
OKLaboklab(61.5% -0.0547 0.1182)
OKLCHoklch(61.5% 0.13 114.8)
XYZxyz(19.0834, 23.9545, 4.6551)
Luminance0.2395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D1B #251B8D
analogous
#8D5E1B #838D1B #4A8D1B
triadic
#838D1B #1B838D #8D1B83
tetradic
#838D1B #1B8D5E #251B8D #8D1B4A
square
#838D1B #1B8D5E #251B8D #8D1B4A
split-complementary
#838D1B #1B4A8D #5E1B8D
monochromatic
#242607 #535A11 #838D1B #B3C025 #CFDC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838D1B#FFFFFF#000000##000000
##838D1B1.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)
#978726
Tritanopia (blue-blind)
#8C8478
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838d1b;
/* rgb */ color: rgb(131, 141, 27);
/* oklch */ color: oklch(61.5% 0.130 114.8);
Tailwind
colors: {
  custom: {
    50: '#aaae63',
    500: '#838d1b',
    950: '#000000',
  },
}
SCSS
$custom: #838d1b;
$custom-light: #aaae63;
$custom-dark: #000000;
JSON
{
  "hex": "#838d1b",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 65.263,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61498,
    "c": 0.13024,
    "h": 114.8
  },
  "luminance": 0.23954
}

Semantic roles & 50–950 ramp

primary
#838D1B
secondary
#5146BD
accent
#3DEB4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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