#818D1F#818D1F

#818D1F is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.4% C 0.129 H 115.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#818D1F
RGBrgb(129, 141, 31)
HSLhsl(67, 64%, 34%)
HSVhsv(67, 78%, 55%)
CMYKcmyk(8.5%, 0%, 78%, 44.7%)
CIE-LABlab(55.90, -18.47, 52.83)
CIE-LCHlch(55.90, 55.96, 109.27°)
OKLaboklab(61.35% -0.0562 0.1159)
OKLCHoklch(61.35% 0.129 115.9)
XYZxyz(18.8260, 23.8161, 4.9013)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818D1F #2B1F8D
analogous
#8D621F #818D1F #4A8D1F
triadic
#818D1F #1F818D #8D1F81
tetradic
#818D1F #1F8D62 #2B1F8D #8D1F4A
square
#818D1F #1F8D62 #2B1F8D #8D1F4A
split-complementary
#818D1F #1F4A8D #621F8D
monochromatic
#252909 #535B14 #818D1F #AFBF2A #C9D84E

Accessibility & contrast

On white

3.64
#818D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#818D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818D1F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818D1F#FFFFFF#000000##000000
##818D1F1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #818d1f;
/* rgb */ color: rgb(129, 141, 31);
/* oklch */ color: oklch(61.4% 0.129 115.9);
Tailwind
colors: {
  custom: {
    50: '#a9ae64',
    500: '#818d1f',
    950: '#000000',
  },
}
SCSS
$custom: #818d1f;
$custom-light: #a9ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#818d1f",
  "rgb": {
    "r": 129,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 66.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61354,
    "c": 0.12886,
    "h": 115.9
  },
  "luminance": 0.23816
}

Semantic roles & 50–950 ramp

primary
#818D1F
secondary
#594DBB
accent
#41E753
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #818D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#818D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva