#297F17#297F17

#297F17 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.158 H 140.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#297F17
RGBrgb(41, 127, 23)
HSLhsl(110, 69%, 29%)
HSVhsv(110, 82%, 50%)
CMYKcmyk(67.7%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.59, -44.83, 45.02)
CIE-LCHlch(46.59, 63.53, 134.88°)
OKLaboklab(52.49% -0.1227 0.1002)
OKLCHoklch(52.49% 0.158 140.8)
XYZxyz(8.6580, 15.7111, 3.3867)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297F17 #6D177F
analogous
#5D7F17 #297F17 #177F39
triadic
#297F17 #17297F #7F1729
tetradic
#297F17 #175D7F #6D177F #7F3917
square
#297F17 #175D7F #6D177F #7F3917
split-complementary
#297F17 #39177F #7F175D
monochromatic
#081A05 #184B0E #297F17 #3AB320 #52DB36

Accessibility & contrast

On white

5.07
#297F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#297F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297F17
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297F17#FFFFFF#000000##FFFFFF
##297F171.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#197B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #297f17;
/* rgb */ color: rgb(41, 127, 23);
/* oklch */ color: oklch(52.5% 0.158 140.8);
Tailwind
colors: {
  custom: {
    50: '#70a55e',
    500: '#297f17',
    950: '#000000',
  },
}
SCSS
$custom: #297f17;
$custom-light: #70a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#297f17",
  "rgb": {
    "r": 41,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 109.615,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52487,
    "c": 0.15842,
    "h": 140.8
  },
  "luminance": 0.15712
}

Semantic roles & 50–950 ramp

primary
#297F17
secondary
#9F3EB4
accent
#3CECCE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #297F17

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

Preview Lab → · Contrast checker → · Palette generator →

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