#818E1F#818E1F

#818E1F is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.6% C 0.130 H 116.3°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#818E1F
RGBrgb(129, 142, 31)
HSLhsl(67, 64%, 34%)
HSVhsv(67, 78%, 56%)
CMYKcmyk(9.2%, 0%, 78.2%, 44.3%)
CIE-LABlab(56.20, -18.99, 53.10)
CIE-LCHlch(56.20, 56.39, 109.68°)
OKLaboklab(61.59% -0.0577 0.1165)
OKLCHoklch(61.59% 0.13 116.3)
XYZxyz(18.9741, 24.1123, 4.9507)
Luminance0.2411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818E1F #2C1F8E
analogous
#8E641F #818E1F #4A8E1F
triadic
#818E1F #1F818E #8E1F81
tetradic
#818E1F #1F8E64 #2C1F8E #8E1F4A
square
#818E1F #1F8E64 #2C1F8E #8E1F4A
split-complementary
#818E1F #1F4A8E #641F8E
monochromatic
#262A09 #535C14 #818E1F #AFC02A #C8D94F

Accessibility & contrast

On white

3.61
#818E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#818E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818E1F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818E1F#FFFFFF#000000##000000
##818E1F1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#978729
Tritanopia (blue-blind)
#8A8679
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #818e1f;
/* rgb */ color: rgb(129, 142, 31);
/* oklch */ color: oklch(61.6% 0.130 116.3);
Tailwind
colors: {
  custom: {
    50: '#a9af65',
    500: '#818e1f',
    950: '#000000',
  },
}
SCSS
$custom: #818e1f;
$custom-light: #a9af65;
$custom-dark: #000000;
JSON
{
  "hex": "#818e1f",
  "rgb": {
    "r": 129,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 67.027,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61592,
    "c": 0.13001,
    "h": 116.3
  },
  "luminance": 0.24112
}

Semantic roles & 50–950 ramp

primary
#818E1F
secondary
#5A4DBB
accent
#41E754
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #818E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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