#838B2F#838B2F

#838B2F is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.2% C 0.115 H 114.0°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#838B2F
RGBrgb(131, 139, 47)
HSLhsl(65, 49%, 36%)
HSVhsv(65, 66%, 55%)
CMYKcmyk(5.8%, 0%, 66.2%, 45.5%)
CIE-LABlab(55.58, -15.64, 46.40)
CIE-LCHlch(55.58, 48.96, 108.62°)
OKLaboklab(61.17% -0.0469 0.1051)
OKLCHoklch(61.17% 0.115 114)
XYZxyz(19.1063, 23.4961, 6.2175)
Luminance0.2350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838B2F #372F8B
analogous
#8B652F #838B2F #558B2F
triadic
#838B2F #2F838B #8B2F83
tetradic
#838B2F #2F8B65 #372F8B #8B2F55
square
#838B2F #2F8B65 #372F8B #8B2F55
split-complementary
#838B2F #2F558B #652F8B
monochromatic
#2D3010 #585D20 #838B2F #AEB93E #C3CC68

Accessibility & contrast

On white

3.68
#838B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#838B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838B2F
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838B2F#FFFFFF#000000##000000
##838B2F1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958423
Deuteranopia (green-blind)
#958635
Tritanopia (blue-blind)
#8B8378
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #838b2f;
/* rgb */ color: rgb(131, 139, 47);
/* oklch */ color: oklch(61.2% 0.115 114.0);
Tailwind
colors: {
  custom: {
    50: '#aaac6d',
    500: '#838b2f',
    950: '#000000',
  },
}
SCSS
$custom: #838b2f;
$custom-light: #aaac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#838b2f",
  "rgb": {
    "r": 131,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 65.217,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61168,
    "c": 0.11509,
    "h": 114
  },
  "luminance": 0.23496
}

Semantic roles & 50–950 ramp

primary
#838B2F
secondary
#6A63B3
accent
#4FD95B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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