#838C2D#838C2D

#838C2D is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.4% C 0.118 H 114.5°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#838C2D
RGBrgb(131, 140, 45)
HSLhsl(66, 51%, 36%)
HSVhsv(66, 68%, 55%)
CMYKcmyk(6.4%, 0%, 67.9%, 45.1%)
CIE-LABlab(55.86, -16.29, 47.54)
CIE-LCHlch(55.86, 50.26, 108.92°)
OKLaboklab(61.39% -0.0489 0.1072)
OKLCHoklch(61.39% 0.118 114.5)
XYZxyz(19.2123, 23.7713, 6.0583)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838C2D #362D8C
analogous
#8C662D #838C2D #548C2D
triadic
#838C2D #2D838C #8C2D83
tetradic
#838C2D #2D8C66 #362D8C #8C2D54
square
#838C2D #2D8C66 #362D8C #8C2D54
split-complementary
#838C2D #2D548C #662D8C
monochromatic
#2C2F0F #585E1E #838C2D #AEBA3C #C4CE66

Accessibility & contrast

On white

3.65
#838C2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#838C2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838C2D
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838C2D#FFFFFF#000000##000000
##838C2D1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968520
Deuteranopia (green-blind)
#968734
Tritanopia (blue-blind)
#8B8479
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838c2d;
/* rgb */ color: rgb(131, 140, 45);
/* oklch */ color: oklch(61.4% 0.118 114.5);
Tailwind
colors: {
  custom: {
    50: '#aaad6c',
    500: '#838c2d',
    950: '#000000',
  },
}
SCSS
$custom: #838c2d;
$custom-light: #aaad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#838c2d",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 65.684,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61386,
    "c": 0.11785,
    "h": 114.5
  },
  "luminance": 0.23771
}

Semantic roles & 50–950 ramp

primary
#838C2D
secondary
#6860B4
accent
#4DDB5A
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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