#838B1E#838B1E

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

Color values

HEX#838B1E
RGBrgb(131, 139, 30)
HSLhsl(64, 64%, 33%)
HSVhsv(64, 78%, 55%)
CMYKcmyk(5.8%, 0%, 78.4%, 45.5%)
CIE-LABlab(55.47, -16.58, 52.81)
CIE-LCHlch(55.47, 55.35, 107.43°)
OKLaboklab(61.04% -0.0512 0.1157)
OKLCHoklch(61.04% 0.126 113.9)
XYZxyz(18.8276, 23.3847, 4.7499)
Luminance0.2338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838B1E #261E8B
analogous
#8B5C1E #838B1E #4C8B1E
triadic
#838B1E #1E838B #8B1E83
tetradic
#838B1E #1E8B5C #261E8B #8B1E4C
square
#838B1E #1E8B5C #261E8B #8B1E4C
split-complementary
#838B1E #1E4C8B #5C1E8B
monochromatic
#242608 #545913 #838B1E #B2BD29 #CED84B

Accessibility & contrast

On white

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

On black

5.68
#838B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838B1E
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838B1E#FFFFFF#000000##000000
##838B1E1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #838b1e;
/* rgb */ color: rgb(131, 139, 30);
/* oklch */ color: oklch(61.0% 0.126 113.9);
Tailwind
colors: {
  custom: {
    50: '#aaac64',
    500: '#838b1e',
    950: '#000000',
  },
}
SCSS
$custom: #838b1e;
$custom-light: #aaac64;
$custom-dark: #000000;
JSON
{
  "hex": "#838b1e",
  "rgb": {
    "r": 131,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 64.404,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61041,
    "c": 0.12647,
    "h": 113.9
  },
  "luminance": 0.23384
}

Semantic roles & 50–950 ramp

primary
#838B1E
secondary
#524ABB
accent
#40E74D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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