#12520F#12520F

#12520F is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.5% C 0.116 H 142.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#12520F
RGBrgb(18, 82, 15)
HSLhsl(117, 69%, 19%)
HSVhsv(117, 82%, 32%)
CMYKcmyk(78%, 0%, 81.7%, 67.8%)
CIE-LABlab(29.90, -33.88, 31.51)
CIE-LCHlch(29.90, 46.27, 137.08°)
OKLaboklab(38.46% -0.0922 0.071)
OKLCHoklch(38.46% 0.116 142.4)
XYZxyz(3.3528, 6.1973, 1.4713)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12520F #4F0F52
analogous
#34520F #12520F #0F522E
triadic
#12520F #0F1252 #520F12
tetradic
#12520F #0F3452 #4F0F52 #522E0F
square
#12520F #0F3452 #4F0F52 #522E0F
split-complementary
#12520F #2E0F52 #520F34
monochromatic
#061A05 #071E06 #12520F #1D8618 #29B922

Accessibility & contrast

On white

9.38
#12520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#12520F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12520F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12520F#FFFFFF#000000##FFFFFF
##12520F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544903
Deuteranopia (green-blind)
#4D4516
Tritanopia (blue-blind)
#014F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12520f;
/* rgb */ color: rgb(18, 82, 15);
/* oklch */ color: oklch(38.5% 0.116 142.4);
Tailwind
colors: {
  custom: {
    50: '#5c8353',
    500: '#12520f',
    950: '#000000',
  },
}
SCSS
$custom: #12520f;
$custom-light: #5c8353;
$custom-dark: #000000;
JSON
{
  "hex": "#12520f",
  "rgb": {
    "r": 18,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 117.313,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38461,
    "c": 0.11634,
    "h": 142.4
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

primary
#12520F
secondary
#88318C
accent
#3CECE4
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#050B02
muted
#797C78

Preview Lab

Preview with #12520F

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

Preview Lab → · Contrast checker → · Palette generator →

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