#818D2D#818D2D

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

Color values

HEX#818D2D
RGBrgb(129, 141, 45)
HSLhsl(68, 52%, 36%)
HSVhsv(68, 68%, 55%)
CMYKcmyk(8.5%, 0%, 68.1%, 44.7%)
CIE-LABlab(55.99, -17.70, 47.63)
CIE-LCHlch(55.99, 50.81, 110.38°)
OKLaboklab(61.46% -0.0527 0.1074)
OKLCHoklch(61.46% 0.12 116.1)
XYZxyz(19.0522, 23.9066, 6.0929)
Luminance0.2391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818D2D #392D8D
analogous
#8D692D #818D2D #518D2D
triadic
#818D2D #2D818D #8D2D81
tetradic
#818D2D #2D8D69 #392D8D #8D2D51
square
#818D2D #2D8D69 #392D8D #8D2D51
split-complementary
#818D2D #2D518D #692D8D
monochromatic
#2C300F #575F1E #818D2D #ABBB3C #C1CE66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##818D2D#FFFFFF#000000##000000
##818D2D1.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)
#97861F
Deuteranopia (green-blind)
#968734
Tritanopia (blue-blind)
#89857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #818d2d;
/* rgb */ color: rgb(129, 141, 45);
/* oklch */ color: oklch(61.5% 0.120 116.1);
Tailwind
colors: {
  custom: {
    50: '#a8ae6c',
    500: '#818d2d',
    950: '#000000',
  },
}
SCSS
$custom: #818d2d;
$custom-light: #a8ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#818d2d",
  "rgb": {
    "r": 129,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 67.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61456,
    "c": 0.11969,
    "h": 116.1
  },
  "luminance": 0.23906
}

Semantic roles & 50–950 ramp

primary
#818D2D
secondary
#6B61B5
accent
#4DDB5F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #818D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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