#818D2E#818D2E

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

Color values

HEX#818D2E
RGBrgb(129, 141, 46)
HSLhsl(68, 51%, 37%)
HSVhsv(68, 67%, 55%)
CMYKcmyk(8.5%, 0%, 67.4%, 44.7%)
CIE-LABlab(56.00, -17.63, 47.22)
CIE-LCHlch(56.00, 50.40, 110.48°)
OKLaboklab(61.46% -0.0525 0.1067)
OKLCHoklch(61.46% 0.119 116.2)
XYZxyz(19.0717, 23.9144, 6.1955)
Luminance0.2391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818D2E #3A2E8D
analogous
#8D6A2E #818D2E #528D2E
triadic
#818D2E #2E818D #8D2E81
tetradic
#818D2E #2E8D6A #3A2E8D #8D2E52
square
#818D2E #2E8D6A #3A2E8D #8D2E52
split-complementary
#818D2E #2E528D #6A2E8D
monochromatic
#2D3110 #575F1F #818D2E #ABBB3D #C1CE68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##818D2E#FFFFFF#000000##000000
##818D2E1.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)
#978621
Deuteranopia (green-blind)
#968735
Tritanopia (blue-blind)
#89857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #818d2e;
/* rgb */ color: rgb(129, 141, 46);
/* oklch */ color: oklch(61.5% 0.119 116.2);
Tailwind
colors: {
  custom: {
    50: '#a8ae6c',
    500: '#818d2e',
    950: '#000000',
  },
}
SCSS
$custom: #818d2e;
$custom-light: #a8ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#818d2e",
  "rgb": {
    "r": 129,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 67.579,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61464,
    "c": 0.11893,
    "h": 116.2
  },
  "luminance": 0.23914
}

Semantic roles & 50–950 ramp

primary
#818D2E
secondary
#6D62B5
accent
#4EDA5F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #818D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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