#12512F#12512F

#12512F is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.6% C 0.085 H 154.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#12512F
RGBrgb(18, 81, 47)
HSLhsl(148, 64%, 19%)
HSVhsv(148, 78%, 32%)
CMYKcmyk(77.8%, 0%, 42%, 68.2%)
CIE-LABlab(29.96, -28.56, 14.49)
CIE-LCHlch(29.96, 32.03, 153.10°)
OKLaboklab(38.64% -0.0771 0.0362)
OKLCHoklch(38.64% 0.085 154.9)
XYZxyz(3.7046, 6.2183, 3.6938)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12512F #511234
analogous
#155112 #12512F #12514F
triadic
#12512F #2F1251 #512F12
tetradic
#12512F #121551 #511234 #514F12
square
#12512F #121551 #511234 #514F12
split-complementary
#12512F #4F1251 #511215
monochromatic
#06190F #071F12 #12512F #1D834C #28B569

Accessibility & contrast

On white

9.36
#12512F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12512F
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12512F#FFFFFF#000000##FFFFFF
##12512F1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A2D
Deuteranopia (green-blind)
#494431
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #12512f;
/* rgb */ color: rgb(18, 81, 47);
/* oklch */ color: oklch(38.6% 0.085 154.9);
Tailwind
colors: {
  custom: {
    50: '#5a8268',
    500: '#12512f',
    950: '#000000',
  },
}
SCSS
$custom: #12512f;
$custom-light: #5a8268;
$custom-dark: #000000;
JSON
{
  "hex": "#12512f",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 47
  },
  "hsl": {
    "h": 147.619,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.08521,
    "h": 154.9
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#12512F
secondary
#8A3563
accent
#419AE7
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #12512F

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

Preview Lab → · Contrast checker → · Palette generator →

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