#818C2D#818C2D

#818C2D is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.118 H 115.7°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#818C2D
RGBrgb(129, 140, 45)
HSLhsl(67, 51%, 36%)
HSVhsv(67, 68%, 55%)
CMYKcmyk(7.9%, 0%, 67.9%, 45.1%)
CIE-LABlab(55.70, -17.18, 47.32)
CIE-LCHlch(55.70, 50.35, 109.95°)
OKLaboklab(61.22% -0.0513 0.1068)
OKLCHoklch(61.22% 0.118 115.7)
XYZxyz(18.9054, 23.6130, 6.0440)
Luminance0.2361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818C2D #382D8C
analogous
#8C682D #818C2D #528C2D
triadic
#818C2D #2D818C #8C2D81
tetradic
#818C2D #2D8C68 #382D8C #8C2D52
square
#818C2D #2D8C68 #382D8C #8C2D52
split-complementary
#818C2D #2D528C #682D8C
monochromatic
#2C2F0F #565E1E #818C2D #ACBA3C #C2CE66

Accessibility & contrast

On white

3.67
#818C2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#818C2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818C2D
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818C2D#FFFFFF#000000##000000
##818C2D1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968520
Deuteranopia (green-blind)
#958634
Tritanopia (blue-blind)
#898479
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #818c2d;
/* rgb */ color: rgb(129, 140, 45);
/* oklch */ color: oklch(61.2% 0.118 115.7);
Tailwind
colors: {
  custom: {
    50: '#a8ad6b',
    500: '#818c2d',
    950: '#000000',
  },
}
SCSS
$custom: #818c2d;
$custom-light: #a8ad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#818c2d",
  "rgb": {
    "r": 129,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 66.947,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61218,
    "c": 0.11848,
    "h": 115.7
  },
  "luminance": 0.23613
}

Semantic roles & 50–950 ramp

primary
#818C2D
secondary
#6A60B4
accent
#4DDB5D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #818C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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