#838E2D#838E2D

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

Color values

HEX#838E2D
RGBrgb(131, 142, 45)
HSLhsl(67, 52%, 37%)
HSVhsv(67, 68%, 56%)
CMYKcmyk(7.7%, 0%, 68.3%, 44.3%)
CIE-LABlab(56.45, -17.34, 48.15)
CIE-LCHlch(56.45, 51.17, 109.81°)
OKLaboklab(61.86% -0.0519 0.1085)
OKLCHoklch(61.86% 0.12 115.6)
XYZxyz(19.5072, 24.3611, 6.1566)
Luminance0.2436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E2D #382D8E
analogous
#8E692D #838E2D #538E2D
triadic
#838E2D #2D838E #8E2D83
tetradic
#838E2D #2D8E69 #382D8E #8E2D53
square
#838E2D #2D8E69 #382D8E #8E2D53
split-complementary
#838E2D #2D538E #692D8E
monochromatic
#2D3110 #58601E #838E2D #AEBC3C #C3CF67

Accessibility & contrast

On white

3.58
#838E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#838E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E2D
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E2D#FFFFFF#000000##000000
##838E2D1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871F
Deuteranopia (green-blind)
#978834
Tritanopia (blue-blind)
#8B867A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e2d;
/* rgb */ color: rgb(131, 142, 45);
/* oklch */ color: oklch(61.9% 0.120 115.6);
Tailwind
colors: {
  custom: {
    50: '#aaaf6c',
    500: '#838e2d',
    950: '#000000',
  },
}
SCSS
$custom: #838e2d;
$custom-light: #aaaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#838e2d",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 66.804,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61859,
    "c": 0.12023,
    "h": 115.6
  },
  "luminance": 0.24361
}

Semantic roles & 50–950 ramp

primary
#838E2D
secondary
#6B61B5
accent
#4CDB5D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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