#838B1F#838B1F

#838B1F 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#838B1F
RGBrgb(131, 139, 31)
HSLhsl(64, 64%, 33%)
HSVhsv(64, 78%, 55%)
CMYKcmyk(5.8%, 0%, 77.7%, 45.5%)
CIE-LABlab(55.47, -16.53, 52.49)
CIE-LCHlch(55.47, 55.03, 107.49°)
OKLaboklab(61.05% -0.051 0.1151)
OKLCHoklch(61.05% 0.126 113.9)
XYZxyz(18.8406, 23.3898, 4.8183)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838B1F #271F8B
analogous
#8B5D1F #838B1F #4D8B1F
triadic
#838B1F #1F838B #8B1F83
tetradic
#838B1F #1F8B5D #271F8B #8B1F4D
square
#838B1F #1F8B5D #271F8B #8B1F4D
split-complementary
#838B1F #1F4D8B #5D1F8B
monochromatic
#252709 #545914 #838B1F #B2BD2A #CDD74D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838B1F#FFFFFF#000000##000000
##838B1F1.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)
#968404
Deuteranopia (green-blind)
#958628
Tritanopia (blue-blind)
#8C8277
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #838b1f;
/* rgb */ color: rgb(131, 139, 31);
/* oklch */ color: oklch(61.0% 0.126 113.9);
Tailwind
colors: {
  custom: {
    50: '#aaac64',
    500: '#838b1f',
    950: '#000000',
  },
}
SCSS
$custom: #838b1f;
$custom-light: #aaac64;
$custom-dark: #000000;
JSON
{
  "hex": "#838b1f",
  "rgb": {
    "r": 131,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 64.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61047,
    "c": 0.12592,
    "h": 113.9
  },
  "luminance": 0.23389
}

Semantic roles & 50–950 ramp

primary
#838B1F
secondary
#544CBA
accent
#41E74D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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