#838E2A#838E2A

#838E2A is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.8% C 0.122 H 115.5°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#838E2A
RGBrgb(131, 142, 42)
HSLhsl(67, 54%, 36%)
HSVhsv(67, 70%, 56%)
CMYKcmyk(7.7%, 0%, 70.4%, 44.3%)
CIE-LABlab(56.43, -17.53, 49.35)
CIE-LCHlch(56.43, 52.37, 109.55°)
OKLaboklab(61.83% -0.0527 0.1105)
OKLCHoklch(61.83% 0.122 115.5)
XYZxyz(19.4515, 24.3388, 5.8632)
Luminance0.2434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E2A #352A8E
analogous
#8E672A #838E2A #518E2A
triadic
#838E2A #2A838E #8E2A83
tetradic
#838E2A #2A8E67 #352A8E #8E2A51
square
#838E2A #2A8E67 #352A8E #8E2A51
split-complementary
#838E2A #2A518E #672A8E
monochromatic
#2C300E #575F1C #838E2A #AFBD38 #C4D162

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838E2A#FFFFFF#000000##000000
##838E2A1.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)
#98871A
Deuteranopia (green-blind)
#978832
Tritanopia (blue-blind)
#8B867A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e2a;
/* rgb */ color: rgb(131, 142, 42);
/* oklch */ color: oklch(61.8% 0.122 115.5);
Tailwind
colors: {
  custom: {
    50: '#aaaf6a',
    500: '#838e2a',
    950: '#000000',
  },
}
SCSS
$custom: #838e2a;
$custom-light: #aaaf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#838e2a",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 66.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61834,
    "c": 0.12242,
    "h": 115.5
  },
  "luminance": 0.24338
}

Semantic roles & 50–950 ramp

primary
#838E2A
secondary
#675DB6
accent
#4ADE5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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