#838D2F#838D2F

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

Color values

HEX#838D2F
RGBrgb(131, 141, 47)
HSLhsl(66, 50%, 37%)
HSVhsv(66, 67%, 55%)
CMYKcmyk(7.1%, 0%, 66.7%, 44.7%)
CIE-LABlab(56.17, -16.69, 47.01)
CIE-LCHlch(56.17, 49.89, 109.54°)
OKLaboklab(61.64% -0.0498 0.1064)
OKLCHoklch(61.64% 0.117 115.1)
XYZxyz(19.3985, 24.0806, 6.3149)
Luminance0.2408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D2F #392F8D
analogous
#8D682F #838D2F #548D2F
triadic
#838D2F #2F838D #8D2F83
tetradic
#838D2F #2F8D68 #392F8D #8D2F54
square
#838D2F #2F8D68 #392F8D #8D2F54
split-complementary
#838D2F #2F548D #682F8D
monochromatic
#2E3110 #585F20 #838D2F #AEBB3E #C2CD69

Accessibility & contrast

On white

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

On black

5.82
#838D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D2F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D2F#FFFFFF#000000##000000
##838D2F1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978622
Deuteranopia (green-blind)
#968736
Tritanopia (blue-blind)
#8B857A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838d2f;
/* rgb */ color: rgb(131, 141, 47);
/* oklch */ color: oklch(61.6% 0.117 115.1);
Tailwind
colors: {
  custom: {
    50: '#aaae6d',
    500: '#838d2f',
    950: '#000000',
  },
}
SCSS
$custom: #838d2f;
$custom-light: #aaae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#838d2f",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 66.383,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.6164,
    "c": 0.11749,
    "h": 115.1
  },
  "luminance": 0.2408
}

Semantic roles & 50–950 ramp

primary
#838D2F
secondary
#6C64B4
accent
#4EDA5D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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