#838D38#838D38

#838D38 is a mid, moderate yellow. Relative luminance 0.242; OKLCH L 61.7% C 0.110 H 115.3°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#838D38
RGBrgb(131, 141, 56)
HSLhsl(67, 43%, 39%)
HSVhsv(67, 60%, 55%)
CMYKcmyk(7.1%, 0%, 60.3%, 44.7%)
CIE-LABlab(56.25, -16.02, 43.05)
CIE-LCHlch(56.25, 45.94, 110.41°)
OKLaboklab(61.73% -0.047 0.0993)
OKLCHoklch(61.73% 0.11 115.3)
XYZxyz(19.5992, 24.1609, 7.3717)
Luminance0.2416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D38 #42388D
analogous
#8D6C38 #838D38 #588D38
triadic
#838D38 #38838D #8D3883
tetradic
#838D38 #388D6C #42388D #8D3858
square
#838D38 #388D6C #42388D #8D3858
split-complementary
#838D38 #38588D #6C388D
monochromatic
#323515 #5A6127 #838D38 #ABB74B #BFC977

Accessibility & contrast

On white

3.60
#838D38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#838D38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D38
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D38#FFFFFF#000000##000000
##838D381.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#96862F
Deuteranopia (green-blind)
#96883D
Tritanopia (blue-blind)
#8B857B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838d38;
/* rgb */ color: rgb(131, 141, 56);
/* oklch */ color: oklch(61.7% 0.110 115.3);
Tailwind
colors: {
  custom: {
    50: '#a9ae72',
    500: '#838d38',
    950: '#000000',
  },
}
SCSS
$custom: #838d38;
$custom-light: #a9ae72;
$custom-dark: #000000;
JSON
{
  "hex": "#838d38",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 67.059,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.6173,
    "c": 0.10988,
    "h": 115.3
  },
  "luminance": 0.24161
}

Semantic roles & 50–950 ramp

primary
#838D38
secondary
#776FB2
accent
#55D364
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#101008
muted
#7F7F7B

Preview Lab

Preview with #838D38

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

Preview Lab → · Contrast checker → · Palette generator →

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