#12510C#12510C

#12510C is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.1% C 0.117 H 141.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#12510C
RGBrgb(18, 81, 12)
HSLhsl(115, 74%, 18%)
HSVhsv(115, 85%, 32%)
CMYKcmyk(77.8%, 0%, 85.2%, 68.2%)
CIE-LABlab(29.51, -33.75, 32.27)
CIE-LCHlch(29.51, 46.70, 136.28°)
OKLaboklab(38.13% -0.092 0.0721)
OKLCHoklch(38.13% 0.117 141.9)
XYZxyz(3.2581, 6.0396, 1.3418)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12510C #4B0C51
analogous
#34510C #12510C #0C5128
triadic
#12510C #0C1251 #510C12
tetradic
#12510C #0C3451 #4B0C51 #51280C
square
#12510C #0C3451 #4B0C51 #51280C
split-complementary
#12510C #280C51 #510C34
monochromatic
#061B04 #061C04 #12510C #1E8614 #2ABC1C

Accessibility & contrast

On white

9.51
#12510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#12510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12510C
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12510C#FFFFFF#000000##FFFFFF
##12510C1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534900
Deuteranopia (green-blind)
#4C4414
Tritanopia (blue-blind)
#024E44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12510c;
/* rgb */ color: rgb(18, 81, 12);
/* oklch */ color: oklch(38.1% 0.117 141.9);
Tailwind
colors: {
  custom: {
    50: '#5c8351',
    500: '#12510c',
    950: '#000000',
  },
}
SCSS
$custom: #12510c;
$custom-light: #5c8351;
$custom-dark: #000000;
JSON
{
  "hex": "#12510c",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 114.783,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38129,
    "c": 0.11687,
    "h": 141.9
  },
  "luminance": 0.0604
}

Semantic roles & 50–950 ramp

primary
#12510C
secondary
#842C8C
accent
#37F1E1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#050A02
muted
#797C78

Preview Lab

Preview with #12510C

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

Preview Lab → · Contrast checker → · Palette generator →

#12510C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva