#838C1D#838C1D

#838C1D is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.3% C 0.128 H 114.4°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#838C1D
RGBrgb(131, 140, 29)
HSLhsl(65, 66%, 33%)
HSVhsv(65, 79%, 55%)
CMYKcmyk(6.4%, 0%, 79.3%, 45.1%)
CIE-LABlab(55.76, -17.14, 53.40)
CIE-LCHlch(55.76, 56.08, 107.80°)
OKLaboklab(61.27% -0.0528 0.1167)
OKLCHoklch(61.27% 0.128 114.4)
XYZxyz(18.9605, 23.6705, 4.7322)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838C1D #261D8C
analogous
#8C5D1D #838C1D #4B8C1D
triadic
#838C1D #1D838C #8C1D83
tetradic
#838C1D #1D8C5D #261D8C #8C1D4B
square
#838C1D #1D8C5D #261D8C #8C1D4B
split-complementary
#838C1D #1D4B8C #5D1D8C
monochromatic
#242708 #545912 #838C1D #B2BF28 #CED94A

Accessibility & contrast

On white

3.66
#838C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#838C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838C1D
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838C1D#FFFFFF#000000##000000
##838C1D1.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)
#978500
Deuteranopia (green-blind)
#968727
Tritanopia (blue-blind)
#8C8377
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838c1d;
/* rgb */ color: rgb(131, 140, 29);
/* oklch */ color: oklch(61.3% 0.128 114.4);
Tailwind
colors: {
  custom: {
    50: '#aaad63',
    500: '#838c1d',
    950: '#000000',
  },
}
SCSS
$custom: #838c1d;
$custom-light: #aaad63;
$custom-dark: #000000;
JSON
{
  "hex": "#838c1d",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 64.865,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61272,
    "c": 0.12811,
    "h": 114.4
  },
  "luminance": 0.2367
}

Semantic roles & 50–950 ramp

primary
#838C1D
secondary
#5249BC
accent
#3FE94D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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