#12540F#12540F

#12540F is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.1% C 0.119 H 142.4°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#12540F
RGBrgb(18, 84, 15)
HSLhsl(117, 70%, 19%)
HSVhsv(117, 82%, 33%)
CMYKcmyk(78.6%, 0%, 82.1%, 67.1%)
CIE-LABlab(30.65, -34.63, 32.25)
CIE-LCHlch(30.65, 47.32, 137.04°)
OKLaboklab(39.08% -0.0942 0.0725)
OKLCHoklch(39.08% 0.119 142.4)
XYZxyz(3.5058, 6.5033, 1.5224)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12540F #510F54
analogous
#35540F #12540F #0F542F
triadic
#12540F #0F1254 #540F12
tetradic
#12540F #0F3554 #510F54 #542F0F
square
#12540F #0F3554 #510F54 #542F0F
split-complementary
#12540F #2F0F54 #540F35
monochromatic
#061A05 #072006 #12540F #1D8818 #28BC22

Accessibility & contrast

On white

9.13
#12540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#12540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12540F
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12540F#FFFFFF#000000##FFFFFF
##12540F1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B02
Deuteranopia (green-blind)
#4F4617
Tritanopia (blue-blind)
#005147
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #12540f;
/* rgb */ color: rgb(18, 84, 15);
/* oklch */ color: oklch(39.1% 0.119 142.4);
Tailwind
colors: {
  custom: {
    50: '#5d8553',
    500: '#12540f',
    950: '#000000',
  },
}
SCSS
$custom: #12540f;
$custom-light: #5d8553;
$custom-dark: #000000;
JSON
{
  "hex": "#12540f",
  "rgb": {
    "r": 18,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 117.391,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39078,
    "c": 0.11888,
    "h": 142.4
  },
  "luminance": 0.06504
}

Semantic roles & 50–950 ramp

primary
#12540F
secondary
#8A318E
accent
#3BEDE5
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#050B03
muted
#797C78

Preview Lab

Preview with #12540F

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

Preview Lab → · Contrast checker → · Palette generator →

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