#838F1F#838F1F

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

Color values

HEX#838F1F
RGBrgb(131, 143, 31)
HSLhsl(66, 64%, 34%)
HSVhsv(66, 78%, 56%)
CMYKcmyk(8.4%, 0%, 78.3%, 43.9%)
CIE-LABlab(56.65, -18.62, 53.57)
CIE-LCHlch(56.65, 56.72, 109.16°)
OKLaboklab(62% -0.0567 0.1175)
OKLCHoklch(62% 0.13 115.8)
XYZxyz(19.4304, 24.5695, 5.0149)
Luminance0.2457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838F1F #2B1F8F
analogous
#8F631F #838F1F #4B8F1F
triadic
#838F1F #1F838F #8F1F83
tetradic
#838F1F #1F8F63 #2B1F8F #8F1F4B
square
#838F1F #1F8F63 #2B1F8F #8F1F4B
split-complementary
#838F1F #1F4B8F #631F8F
monochromatic
#272A09 #555D14 #838F1F #B1C12A #CAD94F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838F1F#FFFFFF#000000##000000
##838F1F1.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)
#9A8701
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#8C867A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #838f1f;
/* rgb */ color: rgb(131, 143, 31);
/* oklch */ color: oklch(62.0% 0.130 115.8);
Tailwind
colors: {
  custom: {
    50: '#aaaf65',
    500: '#838f1f',
    950: '#000000',
  },
}
SCSS
$custom: #838f1f;
$custom-light: #aaaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#838f1f",
  "rgb": {
    "r": 131,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 66.429,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.13044,
    "h": 115.8
  },
  "luminance": 0.24569
}

Semantic roles & 50–950 ramp

primary
#838F1F
secondary
#5A4EBC
accent
#40E752
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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