#818E12#818E12

#818E12 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.5% C 0.136 H 116.2°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#818E12
RGBrgb(129, 142, 18)
HSLhsl(66, 78%, 31%)
HSVhsv(66, 87%, 56%)
CMYKcmyk(9.2%, 0%, 87.3%, 44.3%)
CIE-LABlab(56.14, -19.46, 56.69)
CIE-LCHlch(56.14, 59.93, 108.95°)
OKLaboklab(61.53% -0.0599 0.1219)
OKLCHoklch(61.53% 0.136 116.2)
XYZxyz(18.8360, 24.0571, 4.2234)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818E12 #1F128E
analogous
#8E5D12 #818E12 #438E12
triadic
#818E12 #12818E #8E1281
tetradic
#818E12 #128E5D #1F128E #8E1243
square
#818E12 #128E5D #1F128E #8E1243
split-complementary
#818E12 #12438E #5D128E
monochromatic
#1E2104 #50580B #818E12 #B2C419 #D3E535

Accessibility & contrast

On white

3.61
#818E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#818E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818E12
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818E12#FFFFFF#000000##000000
##818E121.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#988721
Tritanopia (blue-blind)
#8A8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #818e12;
/* rgb */ color: rgb(129, 142, 18);
/* oklch */ color: oklch(61.5% 0.136 116.2);
Tailwind
colors: {
  custom: {
    50: '#a9ae60',
    500: '#818e12',
    950: '#000000',
  },
}
SCSS
$custom: #818e12;
$custom-light: #a9ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#818e12",
  "rgb": {
    "r": 129,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 66.29,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.6153,
    "c": 0.13582,
    "h": 116.2
  },
  "luminance": 0.24057
}

Semantic roles & 50–950 ramp

primary
#818E12
secondary
#483AC2
accent
#34F448
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #818E12

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

Preview Lab → · Contrast checker → · Palette generator →

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