#818A18#818A18

#818A18 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.6% C 0.129 H 114.4°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#818A18
RGBrgb(129, 138, 24)
HSLhsl(65, 70%, 32%)
HSVhsv(65, 83%, 54%)
CMYKcmyk(6.5%, 0%, 82.6%, 45.9%)
CIE-LABlab(54.98, -17.19, 54.16)
CIE-LCHlch(54.98, 56.82, 107.61°)
OKLaboklab(60.6% -0.0533 0.1175)
OKLCHoklch(60.6% 0.129 114.4)
XYZxyz(18.3072, 22.9104, 4.3217)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818A18 #21188A
analogous
#8A5A18 #818A18 #488A18
triadic
#818A18 #18818A #8A1881
tetradic
#818A18 #188A5A #21188A #8A1848
square
#818A18 #188A5A #21188A #8A1848
split-complementary
#818A18 #18488A #5A188A
monochromatic
#202206 #50560F #818A18 #B2BE21 #D1DE3F

Accessibility & contrast

On white

3.76
#818A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#818A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818A18
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818A18#FFFFFF#000000##000000
##818A181.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948523
Tritanopia (blue-blind)
#8A8176
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #818a18;
/* rgb */ color: rgb(129, 138, 24);
/* oklch */ color: oklch(60.6% 0.129 114.4);
Tailwind
colors: {
  custom: {
    50: '#a9ac61',
    500: '#818a18',
    950: '#000000',
  },
}
SCSS
$custom: #818a18;
$custom-light: #a9ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#818a18",
  "rgb": {
    "r": 129,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 64.737,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60602,
    "c": 0.12899,
    "h": 114.4
  },
  "luminance": 0.2291
}

Semantic roles & 50–950 ramp

primary
#818A18
secondary
#4A40BD
accent
#3BED49
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #818A18

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

Preview Lab → · Contrast checker → · Palette generator →

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