#838B1B#838B1B

#838B1B is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.0% C 0.128 H 113.9°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#838B1B
RGBrgb(131, 139, 27)
HSLhsl(64, 67%, 33%)
HSVhsv(64, 81%, 55%)
CMYKcmyk(5.8%, 0%, 80.6%, 45.5%)
CIE-LABlab(55.45, -16.70, 53.75)
CIE-LCHlch(55.45, 56.29, 107.26°)
OKLaboklab(61.03% -0.0518 0.1171)
OKLCHoklch(61.03% 0.128 113.9)
XYZxyz(18.7911, 23.3701, 4.5577)
Luminance0.2337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838B1B #231B8B
analogous
#8B5B1B #838B1B #4B8B1B
triadic
#838B1B #1B838B #8B1B83
tetradic
#838B1B #1B8B5B #231B8B #8B1B4B
square
#838B1B #1B8B5B #231B8B #8B1B4B
split-complementary
#838B1B #1B4B8B #5B1B8B
monochromatic
#222507 #535811 #838B1B #B3BE25 #D0DB45

Accessibility & contrast

On white

3.70
#838B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#838B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838B1B
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838B1B#FFFFFF#000000##000000
##838B1B1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#8C8277
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #838b1b;
/* rgb */ color: rgb(131, 139, 27);
/* oklch */ color: oklch(61.0% 0.128 113.9);
Tailwind
colors: {
  custom: {
    50: '#aaac62',
    500: '#838b1b',
    950: '#000000',
  },
}
SCSS
$custom: #838b1b;
$custom-light: #aaac62;
$custom-dark: #000000;
JSON
{
  "hex": "#838b1b",
  "rgb": {
    "r": 131,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 64.286,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61025,
    "c": 0.12803,
    "h": 113.9
  },
  "luminance": 0.2337
}

Semantic roles & 50–950 ramp

primary
#838B1B
secondary
#4E45BC
accent
#3DEA4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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