#838E2F#838E2F

#838E2F is a mid, moderate yellow. Relative luminance 0.244; OKLCH L 61.9% C 0.119 H 115.6°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#838E2F
RGBrgb(131, 142, 47)
HSLhsl(67, 50%, 37%)
HSVhsv(67, 67%, 56%)
CMYKcmyk(7.7%, 0%, 66.9%, 44.3%)
CIE-LABlab(56.46, -17.21, 47.32)
CIE-LCHlch(56.46, 50.35, 109.99°)
OKLaboklab(61.88% -0.0513 0.1071)
OKLCHoklch(61.88% 0.119 115.6)
XYZxyz(19.5466, 24.3768, 6.3643)
Luminance0.2438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E2F #3A2F8E
analogous
#8E6A2F #838E2F #548E2F
triadic
#838E2F #2F838E #8E2F83
tetradic
#838E2F #2F8E6A #3A2F8E #8E2F54
square
#838E2F #2F8E6A #3A2F8E #8E2F54
split-complementary
#838E2F #2F548E #6A2F8E
monochromatic
#2E3211 #596020 #838E2F #ADBC3E #C2CE6A

Accessibility & contrast

On white

3.57
#838E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#838E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E2F
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E2F#FFFFFF#000000##000000
##838E2F1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#978836
Tritanopia (blue-blind)
#8B867B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e2f;
/* rgb */ color: rgb(131, 142, 47);
/* oklch */ color: oklch(61.9% 0.119 115.6);
Tailwind
colors: {
  custom: {
    50: '#aaaf6d',
    500: '#838e2f',
    950: '#000000',
  },
}
SCSS
$custom: #838e2f;
$custom-light: #aaaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#838e2f",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 66.947,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61876,
    "c": 0.11871,
    "h": 115.6
  },
  "luminance": 0.24377
}

Semantic roles & 50–950 ramp

primary
#838E2F
secondary
#6D64B5
accent
#4EDA5E
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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