#838B2A#838B2A

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

Color values

HEX#838B2A
RGBrgb(131, 139, 42)
HSLhsl(65, 54%, 35%)
HSVhsv(65, 70%, 55%)
CMYKcmyk(5.8%, 0%, 69.8%, 45.5%)
CIE-LABlab(55.54, -15.96, 48.46)
CIE-LCHlch(55.54, 51.02, 108.23°)
OKLaboklab(61.12% -0.0483 0.1086)
OKLCHoklch(61.12% 0.119 114)
XYZxyz(19.0111, 23.4581, 5.7164)
Luminance0.2346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838B2A #322A8B
analogous
#8B622A #838B2A #538B2A
triadic
#838B2A #2A838B #8B2A83
tetradic
#838B2A #2A8B62 #322A8B #8B2A53
square
#838B2A #2A8B62 #322A8B #8B2A53
split-complementary
#838B2A #2A538B #622A8B
monochromatic
#2A2D0E #575C1C #838B2A #AFBA38 #C6CF60

Accessibility & contrast

On white

3.69
#838B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#838B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838B2A
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838B2A#FFFFFF#000000##000000
##838B2A1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#958631
Tritanopia (blue-blind)
#8C8378
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #838b2a;
/* rgb */ color: rgb(131, 139, 42);
/* oklch */ color: oklch(61.1% 0.119 114.0);
Tailwind
colors: {
  custom: {
    50: '#aaac6a',
    500: '#838b2a',
    950: '#000000',
  },
}
SCSS
$custom: #838b2a;
$custom-light: #aaac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#838b2a",
  "rgb": {
    "r": 131,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 64.948,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61125,
    "c": 0.11889,
    "h": 114
  },
  "luminance": 0.23458
}

Semantic roles & 50–950 ramp

primary
#838B2A
secondary
#635CB5
accent
#4BDD57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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