#12531B#12531B

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

Color values

HEX#12531B
RGBrgb(18, 83, 27)
HSLhsl(128, 64%, 20%)
HSVhsv(128, 78%, 33%)
CMYKcmyk(78.3%, 0%, 67.5%, 67.5%)
CIE-LABlab(30.39, -32.95, 26.47)
CIE-LCHlch(30.39, 42.27, 141.22°)
OKLaboklab(38.89% -0.089 0.062)
OKLCHoklch(38.89% 0.108 145.1)
XYZxyz(3.5403, 6.3938, 2.0843)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12531B #53124A
analogous
#295312 #12531B #12533C
triadic
#12531B #1B1253 #531B12
tetradic
#12531B #122953 #53124A #533C12
square
#12531B #122953 #53124A #533C12
split-complementary
#12531B #3C1253 #531229
monochromatic
#051908 #07210B #12531B #1D852B #28B83C

Accessibility & contrast

On white

9.22
#12531B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12531B
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12531B#FFFFFF#000000##FFFFFF
##12531B1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12531b;
/* rgb */ color: rgb(18, 83, 27);
/* oklch */ color: oklch(38.9% 0.108 145.1);
Tailwind
colors: {
  custom: {
    50: '#5c845a',
    500: '#12531b',
    950: '#000000',
  },
}
SCSS
$custom: #12531b;
$custom-light: #5c845a;
$custom-dark: #000000;
JSON
{
  "hex": "#12531b",
  "rgb": {
    "r": 18,
    "g": 83,
    "b": 27
  },
  "hsl": {
    "h": 128.308,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38894,
    "c": 0.10846,
    "h": 145.1
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#12531B
secondary
#8C3580
accent
#40D0E7
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B04
muted
#797C79

Preview Lab

Preview with #12531B

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

Preview Lab → · Contrast checker → · Palette generator →

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