#297D17#297D17

#297D17 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.156 H 140.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#297D17
RGBrgb(41, 125, 23)
HSLhsl(109, 69%, 29%)
HSVhsv(109, 82%, 49%)
CMYKcmyk(67.2%, 0%, 81.6%, 51%)
CIE-LABlab(45.91, -44.10, 44.37)
CIE-LCHlch(45.91, 62.56, 134.83°)
OKLaboklab(51.92% -0.1207 0.0988)
OKLCHoklch(51.92% 0.156 140.7)
XYZxyz(8.4023, 15.1997, 3.3015)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297D17 #6B177D
analogous
#5C7D17 #297D17 #177D38
triadic
#297D17 #17297D #7D1729
tetradic
#297D17 #175C7D #6B177D #7D3817
square
#297D17 #175C7D #6B177D #7D3817
split-complementary
#297D17 #38177D #7D175C
monochromatic
#081A05 #18490D #297D17 #3AB121 #52DA35

Accessibility & contrast

On white

5.20
#297D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#297D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297D17
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297D17#FFFFFF#000000##FFFFFF
##297D171.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#1A796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #297d17;
/* rgb */ color: rgb(41, 125, 23);
/* oklch */ color: oklch(51.9% 0.156 140.7);
Tailwind
colors: {
  custom: {
    50: '#6fa35d',
    500: '#297d17',
    950: '#000000',
  },
}
SCSS
$custom: #297d17;
$custom-light: #6fa35d;
$custom-dark: #000000;
JSON
{
  "hex": "#297d17",
  "rgb": {
    "r": 41,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 109.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51918,
    "c": 0.15604,
    "h": 140.7
  },
  "luminance": 0.15201
}

Semantic roles & 50–950 ramp

primary
#297D17
secondary
#9D3EB2
accent
#3CECCD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #297D17

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

Preview Lab → · Contrast checker → · Palette generator →

#297D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva