#838F1B#838F1B

#838F1B is a mid, vivid yellow. Relative luminance 0.245; OKLCH L 62.0% C 0.132 H 115.7°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#838F1B
RGBrgb(131, 143, 27)
HSLhsl(66, 68%, 33%)
HSVhsv(66, 81%, 56%)
CMYKcmyk(8.4%, 0%, 81.1%, 43.9%)
CIE-LABlab(56.63, -18.78, 54.80)
CIE-LCHlch(56.63, 57.93, 108.92°)
OKLaboklab(61.97% -0.0575 0.1193)
OKLCHoklch(61.97% 0.132 115.7)
XYZxyz(19.3809, 24.5497, 4.7543)
Luminance0.2455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838F1B #271B8F
analogous
#8F611B #838F1B #498F1B
triadic
#838F1B #1B838F #8F1B83
tetradic
#838F1B #1B8F61 #271B8F #8F1B49
square
#838F1B #1B8F61 #271B8F #8F1B49
split-complementary
#838F1B #1B498F #611B8F
monochromatic
#252808 #545C11 #838F1B #B2C225 #CDDC48

Accessibility & contrast

On white

3.55
#838F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#838F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838F1B
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838F1B#FFFFFF#000000##000000
##838F1B1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#8C867A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #838f1b;
/* rgb */ color: rgb(131, 143, 27);
/* oklch */ color: oklch(62.0% 0.132 115.7);
Tailwind
colors: {
  custom: {
    50: '#aaaf63',
    500: '#838f1b',
    950: '#000000',
  },
}
SCSS
$custom: #838f1b;
$custom-light: #aaaf63;
$custom-dark: #000000;
JSON
{
  "hex": "#838f1b",
  "rgb": {
    "r": 131,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 66.207,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61974,
    "c": 0.13248,
    "h": 115.7
  },
  "luminance": 0.24549
}

Semantic roles & 50–950 ramp

primary
#838F1B
secondary
#5448BE
accent
#3DEB4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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