#838C1B#838C1B

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

Color values

HEX#838C1B
RGBrgb(131, 140, 27)
HSLhsl(65, 68%, 33%)
HSVhsv(65, 81%, 55%)
CMYKcmyk(6.4%, 0%, 80.7%, 45.1%)
CIE-LABlab(55.75, -17.23, 54.01)
CIE-LCHlch(55.75, 56.69, 107.69°)
OKLaboklab(61.26% -0.0532 0.1177)
OKLCHoklch(61.26% 0.129 114.3)
XYZxyz(18.9366, 23.6610, 4.6062)
Luminance0.2366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838C1B #241B8C
analogous
#8C5D1B #838C1B #4A8C1B
triadic
#838C1B #1B838C #8C1B83
tetradic
#838C1B #1B8C5D #241B8C #8C1B4A
square
#838C1B #1B8C5D #241B8C #8C1B4A
split-complementary
#838C1B #1B4A8C #5D1B8C
monochromatic
#232507 #535911 #838C1B #B3BF25 #CFDB46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838C1B#FFFFFF#000000##000000
##838C1B1.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)
#968726
Tritanopia (blue-blind)
#8C8377
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838c1b;
/* rgb */ color: rgb(131, 140, 27);
/* oklch */ color: oklch(61.3% 0.129 114.3);
Tailwind
colors: {
  custom: {
    50: '#aaad63',
    500: '#838c1b',
    950: '#000000',
  },
}
SCSS
$custom: #838c1b;
$custom-light: #aaad63;
$custom-dark: #000000;
JSON
{
  "hex": "#838c1b",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 27
  },
  "hsl": {
    "h": 64.779,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61261,
    "c": 0.12913,
    "h": 114.3
  },
  "luminance": 0.23661
}

Semantic roles & 50–950 ramp

primary
#838C1B
secondary
#4F46BD
accent
#3DEB4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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