#818C1F#818C1F

#818C1F is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.1% C 0.128 H 115.4°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#818C1F
RGBrgb(129, 140, 31)
HSLhsl(66, 64%, 34%)
HSVhsv(66, 78%, 55%)
CMYKcmyk(7.9%, 0%, 77.9%, 45.1%)
CIE-LABlab(55.61, -17.95, 52.55)
CIE-LCHlch(55.61, 55.53, 108.86°)
OKLaboklab(61.11% -0.0548 0.1154)
OKLCHoklch(61.11% 0.128 115.4)
XYZxyz(18.6792, 23.5225, 4.8524)
Luminance0.2352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818C1F #2A1F8C
analogous
#8C601F #818C1F #4A8C1F
triadic
#818C1F #1F818C #8C1F81
tetradic
#818C1F #1F8C60 #2A1F8C #8C1F4A
square
#818C1F #1F8C60 #2A1F8C #8C1F4A
split-complementary
#818C1F #1F4A8C #601F8C
monochromatic
#252809 #535A14 #818C1F #AFBE2A #CAD84E

Accessibility & contrast

On white

3.68
#818C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#818C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818C1F
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818C1F#FFFFFF#000000##000000
##818C1F1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968503
Deuteranopia (green-blind)
#968629
Tritanopia (blue-blind)
#8A8478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #818c1f;
/* rgb */ color: rgb(129, 140, 31);
/* oklch */ color: oklch(61.1% 0.128 115.4);
Tailwind
colors: {
  custom: {
    50: '#a9ad64',
    500: '#818c1f',
    950: '#000000',
  },
}
SCSS
$custom: #818c1f;
$custom-light: #a9ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#818c1f",
  "rgb": {
    "r": 129,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 66.055,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61115,
    "c": 0.12771,
    "h": 115.4
  },
  "luminance": 0.23522
}

Semantic roles & 50–950 ramp

primary
#818C1F
secondary
#574CBB
accent
#41E752
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #818C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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