#12420F#12420F

#12420F is a dark, moderate green. Relative luminance 0.041; OKLCH L 33.5% C 0.095 H 142.3°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#12420F
RGBrgb(18, 66, 15)
HSLhsl(116, 63%, 16%)
HSVhsv(116, 77%, 26%)
CMYKcmyk(72.7%, 0%, 77.3%, 74.1%)
CIE-LABlab(23.87, -27.56, 25.30)
CIE-LCHlch(23.87, 37.41, 137.44°)
OKLaboklab(33.46% -0.075 0.058)
OKLCHoklch(33.46% 0.095 142.3)
XYZxyz(2.2838, 4.0593, 1.1150)
Luminance0.0406 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12420F #3F0F42
analogous
#2B420F #12420F #0F4225
triadic
#12420F #0F1242 #420F12
tetradic
#12420F #0F2B42 #3F0F42 #42250F
square
#12420F #0F2B42 #3F0F42 #42250F
split-complementary
#12420F #250F42 #420F2B
monochromatic
#071906 #071906 #12420F #20741A #2DA626

Accessibility & contrast

On white

11.59
#12420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#12420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12420F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12420F#FFFFFF#000000##FFFFFF
##12420F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B08
Deuteranopia (green-blind)
#3E3714
Tritanopia (blue-blind)
#084038
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #12420f;
/* rgb */ color: rgb(18, 66, 15);
/* oklch */ color: oklch(33.5% 0.095 142.3);
Tailwind
colors: {
  custom: {
    50: '#587750',
    500: '#12420f',
    950: '#000000',
  },
}
SCSS
$custom: #12420f;
$custom-light: #587750;
$custom-dark: #000000;
JSON
{
  "hex": "#12420f",
  "rgb": {
    "r": 18,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 116.471,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.33456,
    "c": 0.09484,
    "h": 142.3
  },
  "luminance": 0.0406
}

Semantic roles & 50–950 ramp

primary
#12420F
secondary
#78307C
accent
#42E6DC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040802
muted
#797B78

Preview Lab

Preview with #12420F

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

Preview Lab → · Contrast checker → · Palette generator →

#12420F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva