#818D1C#818D1C

#818D1C is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.130 H 115.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#818D1C
RGBrgb(129, 141, 28)
HSLhsl(66, 67%, 33%)
HSVhsv(66, 80%, 55%)
CMYKcmyk(8.5%, 0%, 80.1%, 44.7%)
CIE-LABlab(55.89, -18.60, 53.77)
CIE-LCHlch(55.89, 56.90, 109.08°)
OKLaboklab(61.34% -0.0568 0.1174)
OKLCHoklch(61.34% 0.13 115.8)
XYZxyz(18.7883, 23.8010, 4.7027)
Luminance0.2380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818D1C #281C8D
analogous
#8D601C #818D1C #488D1C
triadic
#818D1C #1C818D #8D1C81
tetradic
#818D1C #1C8D60 #281C8D #8D1C48
square
#818D1C #1C8D60 #281C8D #8D1C48
split-complementary
#818D1C #1C488D #601C8D
monochromatic
#242708 #525A12 #818D1C #B0C026 #CBDB49

Accessibility & contrast

On white

3.65
#818D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#818D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818D1C
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818D1C#FFFFFF#000000##000000
##818D1C1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#8A8478
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #818d1c;
/* rgb */ color: rgb(129, 141, 28);
/* oklch */ color: oklch(61.3% 0.130 115.8);
Tailwind
colors: {
  custom: {
    50: '#a9ae63',
    500: '#818d1c',
    950: '#000000',
  },
}
SCSS
$custom: #818d1c;
$custom-light: #a9ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#818d1c",
  "rgb": {
    "r": 129,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 66.372,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61337,
    "c": 0.13043,
    "h": 115.8
  },
  "luminance": 0.23801
}

Semantic roles & 50–950 ramp

primary
#818D1C
secondary
#5448BD
accent
#3EEA50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #818D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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