#818D2F#818D2F

#818D2F is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 61.5% C 0.118 H 116.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#818D2F
RGBrgb(129, 141, 47)
HSLhsl(68, 50%, 37%)
HSVhsv(68, 67%, 55%)
CMYKcmyk(8.5%, 0%, 66.7%, 44.7%)
CIE-LABlab(56.01, -17.56, 46.80)
CIE-LCHlch(56.01, 49.99, 110.57°)
OKLaboklab(61.47% -0.0522 0.106)
OKLCHoklch(61.47% 0.118 116.2)
XYZxyz(19.0917, 23.9224, 6.3005)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818D2F #3B2F8D
analogous
#8D6A2F #818D2F #528D2F
triadic
#818D2F #2F818D #8D2F81
tetradic
#818D2F #2F8D6A #3B2F8D #8D2F52
square
#818D2F #2F8D6A #3B2F8D #8D2F52
split-complementary
#818D2F #2F528D #6A2F8D
monochromatic
#2D3110 #575F20 #818D2F #ABBB3E #C0CD69

Accessibility & contrast

On white

3.63
#818D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#818D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818D2F
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818D2F#FFFFFF#000000##000000
##818D2F1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978622
Deuteranopia (green-blind)
#968736
Tritanopia (blue-blind)
#89857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #818d2f;
/* rgb */ color: rgb(129, 141, 47);
/* oklch */ color: oklch(61.5% 0.118 116.2);
Tailwind
colors: {
  custom: {
    50: '#a8ae6d',
    500: '#818d2f',
    950: '#000000',
  },
}
SCSS
$custom: #818d2f;
$custom-light: #a8ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#818d2f",
  "rgb": {
    "r": 129,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 67.66,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61473,
    "c": 0.11814,
    "h": 116.2
  },
  "luminance": 0.23922
}

Semantic roles & 50–950 ramp

primary
#818D2F
secondary
#6E64B4
accent
#4EDA60
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #818D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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