#818B18#818B18

#818B18 is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 60.8% C 0.130 H 114.9°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#818B18
RGBrgb(129, 139, 24)
HSLhsl(65, 71%, 32%)
HSVhsv(65, 83%, 55%)
CMYKcmyk(7.2%, 0%, 82.7%, 45.5%)
CIE-LABlab(55.28, -17.71, 54.42)
CIE-LCHlch(55.28, 57.23, 108.03°)
OKLaboklab(60.84% -0.0547 0.118)
OKLCHoklch(60.84% 0.13 114.9)
XYZxyz(18.4513, 23.1987, 4.3698)
Luminance0.2320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818B18 #22188B
analogous
#8B5B18 #818B18 #488B18
triadic
#818B18 #18818B #8B1881
tetradic
#818B18 #188B5B #22188B #8B1848
square
#818B18 #188B5B #22188B #8B1848
split-complementary
#818B18 #18488B #5B188B
monochromatic
#202306 #51570F #818B18 #B1BF21 #D0DE3F

Accessibility & contrast

On white

3.72
#818B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#818B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818B18
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818B18#FFFFFF#000000##000000
##818B181.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#8A8276
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #818b18;
/* rgb */ color: rgb(129, 139, 24);
/* oklch */ color: oklch(60.8% 0.130 114.9);
Tailwind
colors: {
  custom: {
    50: '#a9ac61',
    500: '#818b18',
    950: '#000000',
  },
}
SCSS
$custom: #818b18;
$custom-light: #a9ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#818b18",
  "rgb": {
    "r": 129,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 65.217,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.6084,
    "c": 0.1301,
    "h": 114.9
  },
  "luminance": 0.23198
}

Semantic roles & 50–950 ramp

primary
#818B18
secondary
#4B40BE
accent
#3AED4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #818B18

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

Preview Lab → · Contrast checker → · Palette generator →

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