#838D2D#838D2D

#838D2D is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.6% C 0.119 H 115.1°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#838D2D
RGBrgb(131, 141, 45)
HSLhsl(66, 52%, 36%)
HSVhsv(66, 68%, 55%)
CMYKcmyk(7.1%, 0%, 68.1%, 44.7%)
CIE-LABlab(56.15, -16.82, 47.84)
CIE-LCHlch(56.15, 50.71, 109.37°)
OKLaboklab(61.62% -0.0504 0.1078)
OKLCHoklch(61.62% 0.119 115.1)
XYZxyz(19.3591, 24.0648, 6.1073)
Luminance0.2407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D2D #372D8D
analogous
#8D672D #838D2D #538D2D
triadic
#838D2D #2D838D #8D2D83
tetradic
#838D2D #2D8D67 #372D8D #8D2D53
square
#838D2D #2D8D67 #372D8D #8D2D53
split-complementary
#838D2D #2D538D #672D8D
monochromatic
#2D300F #585F1E #838D2D #AEBB3C #C3CE66

Accessibility & contrast

On white

3.61
#838D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#838D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D2D
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D2D#FFFFFF#000000##000000
##838D2D1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861F
Deuteranopia (green-blind)
#968734
Tritanopia (blue-blind)
#8B857A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838d2d;
/* rgb */ color: rgb(131, 141, 45);
/* oklch */ color: oklch(61.6% 0.119 115.1);
Tailwind
colors: {
  custom: {
    50: '#aaae6c',
    500: '#838d2d',
    950: '#000000',
  },
}
SCSS
$custom: #838d2d;
$custom-light: #aaae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#838d2d",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 66.25,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61622,
    "c": 0.11903,
    "h": 115.1
  },
  "luminance": 0.24065
}

Semantic roles & 50–950 ramp

primary
#838D2D
secondary
#6A61B5
accent
#4DDB5C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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