#297A17#297A17

#297A17 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.152 H 140.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#297A17
RGBrgb(41, 122, 23)
HSLhsl(109, 68%, 28%)
HSVhsv(109, 81%, 48%)
CMYKcmyk(66.4%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.87, -43.01, 43.38)
CIE-LCHlch(44.87, 61.09, 134.75°)
OKLaboklab(51.06% -0.1178 0.0968)
OKLCHoklch(51.06% 0.152 140.6)
XYZxyz(8.0282, 14.4516, 3.1768)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297A17 #68177A
analogous
#5A7A17 #297A17 #177A36
triadic
#297A17 #17297A #7A1729
tetradic
#297A17 #175A7A #68177A #7A3617
square
#297A17 #175A7A #68177A #7A3617
split-complementary
#297A17 #36177A #7A175A
monochromatic
#091A05 #18470D #297A17 #3AAD21 #51D933

Accessibility & contrast

On white

5.40
#297A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#297A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297A17
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297A17#FFFFFF#000000##FFFFFF
##297A171.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#1C7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #297a17;
/* rgb */ color: rgb(41, 122, 23);
/* oklch */ color: oklch(51.1% 0.152 140.6);
Tailwind
colors: {
  custom: {
    50: '#6fa15d',
    500: '#297a17',
    950: '#000000',
  },
}
SCSS
$custom: #297a17;
$custom-light: #6fa15d;
$custom-dark: #000000;
JSON
{
  "hex": "#297a17",
  "rgb": {
    "r": 41,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 109.091,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51063,
    "c": 0.15246,
    "h": 140.6
  },
  "luminance": 0.14452
}

Semantic roles & 50–950 ramp

primary
#297A17
secondary
#9A3EAF
accent
#3DEBCB
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #297A17

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

Preview Lab → · Contrast checker → · Palette generator →

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