#12531C#12531C

#12531C is a dark, moderate green. Relative luminance 0.064; OKLCH L 38.9% C 0.108 H 145.4°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#12531C
RGBrgb(18, 83, 28)
HSLhsl(129, 64%, 20%)
HSVhsv(129, 78%, 33%)
CMYKcmyk(78.3%, 0%, 66.3%, 67.5%)
CIE-LABlab(30.40, -32.82, 25.97)
CIE-LCHlch(30.40, 41.85, 141.65°)
OKLaboklab(38.91% -0.0886 0.061)
OKLCHoklch(38.91% 0.108 145.4)
XYZxyz(3.5521, 6.3986, 2.1462)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12531C #531249
analogous
#285312 #12531C #12533D
triadic
#12531C #1C1253 #531C12
tetradic
#12531C #122853 #531249 #533D12
square
#12531C #122853 #531249 #533D12
split-complementary
#12531C #3D1253 #531228
monochromatic
#051908 #07210B #12531C #1D852D #28B83E

Accessibility & contrast

On white

9.21
#12531C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#12531C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12531C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12531C#FFFFFF#000000##FFFFFF
##12531C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544B16
Deuteranopia (green-blind)
#4D4621
Tritanopia (blue-blind)
#005147
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #12531c;
/* rgb */ color: rgb(18, 83, 28);
/* oklch */ color: oklch(38.9% 0.108 145.4);
Tailwind
colors: {
  custom: {
    50: '#5b845a',
    500: '#12531c',
    950: '#000000',
  },
}
SCSS
$custom: #12531c;
$custom-light: #5b845a;
$custom-dark: #000000;
JSON
{
  "hex": "#12531c",
  "rgb": {
    "r": 18,
    "g": 83,
    "b": 28
  },
  "hsl": {
    "h": 129.231,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38907,
    "c": 0.10757,
    "h": 145.4
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#12531C
secondary
#8C357E
accent
#40CEE7
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B04
muted
#797C79

Preview Lab

Preview with #12531C

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

Preview Lab → · Contrast checker → · Palette generator →

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