#838C1F#838C1F

#838C1F is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.3% C 0.127 H 114.4°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#838C1F
RGBrgb(131, 140, 31)
HSLhsl(65, 64%, 34%)
HSVhsv(65, 78%, 55%)
CMYKcmyk(6.4%, 0%, 77.9%, 45.1%)
CIE-LABlab(55.77, -17.06, 52.76)
CIE-LCHlch(55.77, 55.45, 107.92°)
OKLaboklab(61.28% -0.0524 0.1157)
OKLCHoklch(61.28% 0.127 114.4)
XYZxyz(18.9860, 23.6808, 4.8667)
Luminance0.2368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838C1F #281F8C
analogous
#8C5E1F #838C1F #4C8C1F
triadic
#838C1F #1F838C #8C1F83
tetradic
#838C1F #1F8C5E #281F8C #8C1F4C
square
#838C1F #1F8C5E #281F8C #8C1F4C
split-complementary
#838C1F #1F4C8C #5E1F8C
monochromatic
#252809 #545A14 #838C1F #B2BE2A #CCD84E

Accessibility & contrast

On white

3.66
#838C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#838C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838C1F
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838C1F#FFFFFF#000000##000000
##838C1F1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#968729
Tritanopia (blue-blind)
#8C8378
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838c1f;
/* rgb */ color: rgb(131, 140, 31);
/* oklch */ color: oklch(61.3% 0.127 114.4);
Tailwind
colors: {
  custom: {
    50: '#aaad64',
    500: '#838c1f',
    950: '#000000',
  },
}
SCSS
$custom: #838c1f;
$custom-light: #aaad64;
$custom-dark: #000000;
JSON
{
  "hex": "#838c1f",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 64.954,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61284,
    "c": 0.12704,
    "h": 114.4
  },
  "luminance": 0.2368
}

Semantic roles & 50–950 ramp

primary
#838C1F
secondary
#554CBB
accent
#41E74F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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