#818F1F#818F1F

#818F1F is a mid, vivid yellow. Relative luminance 0.244; OKLCH L 61.8% C 0.131 H 116.8°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#818F1F
RGBrgb(129, 143, 31)
HSLhsl(68, 64%, 34%)
HSVhsv(68, 78%, 56%)
CMYKcmyk(9.8%, 0%, 78.3%, 43.9%)
CIE-LABlab(56.50, -19.50, 53.37)
CIE-LCHlch(56.50, 56.82, 110.07°)
OKLaboklab(61.83% -0.0591 0.1171)
OKLCHoklch(61.83% 0.131 116.8)
XYZxyz(19.1235, 24.4112, 5.0005)
Luminance0.2441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818F1F #2D1F8F
analogous
#8F651F #818F1F #498F1F
triadic
#818F1F #1F818F #8F1F81
tetradic
#818F1F #1F8F65 #2D1F8F #8F1F49
square
#818F1F #1F8F65 #2D1F8F #8F1F49
split-complementary
#818F1F #1F498F #651F8F
monochromatic
#262A09 #545D14 #818F1F #AEC12A #C8D94F

Accessibility & contrast

On white

3.57
#818F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#818F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818F1F
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818F1F#FFFFFF#000000##000000
##818F1F1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#998701
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#89877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #818f1f;
/* rgb */ color: rgb(129, 143, 31);
/* oklch */ color: oklch(61.8% 0.131 116.8);
Tailwind
colors: {
  custom: {
    50: '#a9af65',
    500: '#818f1f',
    950: '#000000',
  },
}
SCSS
$custom: #818f1f;
$custom-light: #a9af65;
$custom-dark: #000000;
JSON
{
  "hex": "#818f1f",
  "rgb": {
    "r": 129,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 67.5,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61831,
    "c": 0.13116,
    "h": 116.8
  },
  "luminance": 0.24411
}

Semantic roles & 50–950 ramp

primary
#818F1F
secondary
#5C4EBC
accent
#40E755
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #818F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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