#175F21#175F21

#175F21 is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.7% C 0.118 H 145.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#175F21
RGBrgb(23, 95, 33)
HSLhsl(128, 61%, 23%)
HSVhsv(128, 76%, 37%)
CMYKcmyk(75.8%, 0%, 65.3%, 62.7%)
CIE-LABlab(34.95, -35.85, 28.64)
CIE-LCHlch(34.95, 45.89, 141.38°)
OKLaboklab(42.74% -0.0968 0.0672)
OKLCHoklch(42.74% 0.118 145.2)
XYZxyz(4.7198, 8.4759, 2.8258)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#175F21 #5F1755
analogous
#315F17 #175F21 #175F45
triadic
#175F21 #21175F #5F2117
tetradic
#175F21 #17315F #5F1755 #5F4517
square
#175F21 #17315F #5F1755 #5F4517
split-complementary
#175F21 #45175F #5F1731
monochromatic
#061909 #0B2E10 #175F21 #239032 #2FC243

Accessibility & contrast

On white

7.79
#175F21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#175F21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #175F21
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##175F21#FFFFFF#000000##FFFFFF
##175F211.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61561A
Deuteranopia (green-blind)
#585026
Tritanopia (blue-blind)
#005C52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #175f21;
/* rgb */ color: rgb(23, 95, 33);
/* oklch */ color: oklch(42.7% 0.118 145.2);
Tailwind
colors: {
  custom: {
    50: '#608d5f',
    500: '#175f21',
    950: '#000000',
  },
}
SCSS
$custom: #175f21;
$custom-light: #608d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#175f21",
  "rgb": {
    "r": 23,
    "g": 95,
    "b": 33
  },
  "hsl": {
    "h": 128.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.42736,
    "c": 0.11789,
    "h": 145.2
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#175F21
secondary
#963C89
accent
#44CEE4
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#050C04
muted
#7A7D79

Preview Lab

Preview with #175F21

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

Preview Lab → · Contrast checker → · Palette generator →

#175F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva