#175212#175212

#175212 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.6% C 0.112 H 142.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#175212
RGBrgb(23, 82, 18)
HSLhsl(115, 64%, 20%)
HSVhsv(115, 78%, 32%)
CMYKcmyk(72%, 0%, 78%, 67.8%)
CIE-LABlab(30.06, -32.51, 30.46)
CIE-LCHlch(30.06, 44.55, 136.87°)
OKLaboklab(38.63% -0.0886 0.0692)
OKLCHoklch(38.63% 0.112 142)
XYZxyz(3.4796, 6.2601, 1.5971)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#175212 #4D1252
analogous
#375212 #175212 #12522D
triadic
#175212 #121752 #521217
tetradic
#175212 #123752 #4D1252 #522D12
square
#175212 #123752 #4D1252 #522D12
split-complementary
#175212 #2D1252 #521237
monochromatic
#071906 #092007 #175212 #25841D #33B628

Accessibility & contrast

On white

9.33
#175212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#175212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #175212
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##175212#FFFFFF#000000##FFFFFF
##1752121.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A07
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#0B4F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #175212;
/* rgb */ color: rgb(23, 82, 18);
/* oklch */ color: oklch(38.6% 0.112 142.0);
Tailwind
colors: {
  custom: {
    50: '#5e8354',
    500: '#175212',
    950: '#000000',
  },
}
SCSS
$custom: #175212;
$custom-light: #5e8354;
$custom-dark: #000000;
JSON
{
  "hex": "#175212",
  "rgb": {
    "r": 23,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 115.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38634,
    "c": 0.11241,
    "h": 142
  },
  "luminance": 0.0626
}

Semantic roles & 50–950 ramp

primary
#175212
secondary
#84358B
accent
#41E7DA
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #175212

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

Preview Lab → · Contrast checker → · Palette generator →

#175212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva