#818B2A#818B2A

#818B2A is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.0% C 0.119 H 115.1°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#818B2A
RGBrgb(129, 139, 42)
HSLhsl(66, 54%, 35%)
HSVhsv(66, 70%, 55%)
CMYKcmyk(7.2%, 0%, 69.8%, 45.5%)
CIE-LABlab(55.38, -16.84, 48.24)
CIE-LCHlch(55.38, 51.10, 109.25°)
OKLaboklab(60.96% -0.0507 0.1082)
OKLCHoklch(60.96% 0.12 115.1)
XYZxyz(18.7043, 23.2998, 5.7020)
Luminance0.2330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818B2A #342A8B
analogous
#8B652A #818B2A #508B2A
triadic
#818B2A #2A818B #8B2A81
tetradic
#818B2A #2A8B65 #342A8B #8B2A50
square
#818B2A #2A8B65 #342A8B #8B2A50
split-complementary
#818B2A #2A508B #652A8B
monochromatic
#2A2D0E #555C1C #818B2A #ADBA38 #C4CF60

Accessibility & contrast

On white

3.71
#818B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#818B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818B2A
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818B2A#FFFFFF#000000##000000
##818B2A1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#948531
Tritanopia (blue-blind)
#898378
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #818b2a;
/* rgb */ color: rgb(129, 139, 42);
/* oklch */ color: oklch(61.0% 0.119 115.1);
Tailwind
colors: {
  custom: {
    50: '#a8ac6a',
    500: '#818b2a',
    950: '#000000',
  },
}
SCSS
$custom: #818b2a;
$custom-light: #a8ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#818b2a",
  "rgb": {
    "r": 129,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 66.186,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60956,
    "c": 0.1195,
    "h": 115.1
  },
  "luminance": 0.233
}

Semantic roles & 50–950 ramp

primary
#818B2A
secondary
#655CB5
accent
#4BDD5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #818B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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