#838D2B#838D2B

#838D2B is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.6% C 0.121 H 115.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#838D2B
RGBrgb(131, 141, 43)
HSLhsl(66, 53%, 36%)
HSVhsv(66, 70%, 55%)
CMYKcmyk(7.1%, 0%, 69.5%, 44.7%)
CIE-LABlab(56.14, -16.94, 48.65)
CIE-LCHlch(56.14, 51.52, 109.20°)
OKLaboklab(61.61% -0.051 0.1092)
OKLCHoklch(61.61% 0.121 115)
XYZxyz(19.3215, 24.0498, 5.9093)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D2B #352B8D
analogous
#8D662B #838D2B #528D2B
triadic
#838D2B #2B838D #8D2B83
tetradic
#838D2B #2B8D66 #352B8D #8D2B52
square
#838D2B #2B8D66 #352B8D #8D2B52
split-complementary
#838D2B #2B528D #662B8D
monochromatic
#2C2F0E #575E1D #838D2B #AFBC39 #C4CF63

Accessibility & contrast

On white

3.61
#838D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#838D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D2B
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D2B#FFFFFF#000000##000000
##838D2B1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861C
Deuteranopia (green-blind)
#968732
Tritanopia (blue-blind)
#8B8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838d2b;
/* rgb */ color: rgb(131, 141, 43);
/* oklch */ color: oklch(61.6% 0.121 115.0);
Tailwind
colors: {
  custom: {
    50: '#aaae6b',
    500: '#838d2b',
    950: '#000000',
  },
}
SCSS
$custom: #838d2b;
$custom-light: #aaae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#838d2b",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 66.122,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61605,
    "c": 0.12052,
    "h": 115
  },
  "luminance": 0.24049
}

Semantic roles & 50–950 ramp

primary
#838D2B
secondary
#675EB6
accent
#4BDD5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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