#818C2B#818C2B

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

Color values

HEX#818C2B
RGBrgb(129, 140, 43)
HSLhsl(67, 53%, 36%)
HSVhsv(67, 69%, 55%)
CMYKcmyk(7.9%, 0%, 69.3%, 45.1%)
CIE-LABlab(55.68, -17.30, 48.14)
CIE-LCHlch(55.68, 51.16, 109.77°)
OKLaboklab(61.2% -0.0518 0.1082)
OKLCHoklch(61.2% 0.12 115.6)
XYZxyz(18.8678, 23.5980, 5.8460)
Luminance0.2360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818C2B #362B8C
analogous
#8C662B #818C2B #508C2B
triadic
#818C2B #2B818C #8C2B81
tetradic
#818C2B #2B8C66 #362B8C #8C2B50
square
#818C2B #2B8C66 #362B8C #8C2B50
split-complementary
#818C2B #2B508C #662B8C
monochromatic
#2B2E0E #565D1D #818C2B #ACBB39 #C3CF62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##818C2B#FFFFFF#000000##000000
##818C2B1.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)
#96851C
Deuteranopia (green-blind)
#958632
Tritanopia (blue-blind)
#898479
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #818c2b;
/* rgb */ color: rgb(129, 140, 43);
/* oklch */ color: oklch(61.2% 0.120 115.6);
Tailwind
colors: {
  custom: {
    50: '#a8ad6a',
    500: '#818c2b',
    950: '#000000',
  },
}
SCSS
$custom: #818c2b;
$custom-light: #a8ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#818c2b",
  "rgb": {
    "r": 129,
    "g": 140,
    "b": 43
  },
  "hsl": {
    "h": 66.804,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61201,
    "c": 0.11997,
    "h": 115.6
  },
  "luminance": 0.23598
}

Semantic roles & 50–950 ramp

primary
#818C2B
secondary
#685EB5
accent
#4BDC5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #818C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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