#124812#124812

#124812 is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.4% C 0.101 H 143.1°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#124812
RGBrgb(18, 72, 18)
HSLhsl(120, 60%, 18%)
HSVhsv(120, 75%, 28%)
CMYKcmyk(75%, 0%, 75%, 71.8%)
CIE-LABlab(26.18, -29.69, 26.33)
CIE-LCHlch(26.18, 39.68, 138.44°)
OKLaboklab(35.38% -0.0806 0.0606)
OKLCHoklch(35.38% 0.101 143.1)
XYZxyz(2.6758, 4.8067, 1.3589)
Luminance0.0481 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#124812 #481248
analogous
#2D4812 #124812 #12482D
triadic
#124812 #121248 #481212
tetradic
#124812 #122D48 #481248 #482D12
square
#124812 #122D48 #481248 #482D12
split-complementary
#124812 #2D1248 #48122D
monochromatic
#061806 #061806 #124812 #1E791E #2AAA2A

Accessibility & contrast

On white

10.71
#124812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#124812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #124812
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##124812#FFFFFF#000000##FFFFFF
##1248121.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410B
Deuteranopia (green-blind)
#433C17
Tritanopia (blue-blind)
#05463D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #124812;
/* rgb */ color: rgb(18, 72, 18);
/* oklch */ color: oklch(35.4% 0.101 143.1);
Tailwind
colors: {
  custom: {
    50: '#597c53',
    500: '#124812',
    950: '#000000',
  },
}
SCSS
$custom: #124812;
$custom-light: #597c53;
$custom-dark: #000000;
JSON
{
  "hex": "#124812",
  "rgb": {
    "r": 18,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.35377,
    "c": 0.10085,
    "h": 143.1
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#124812
secondary
#813581
accent
#45E3E3
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040902
muted
#797B78

Preview Lab

Preview with #124812

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

Preview Lab → · Contrast checker → · Palette generator →

#124812 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva