#297217#297217

#297217 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.143 H 140.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#297217
RGBrgb(41, 114, 23)
HSLhsl(108, 66%, 27%)
HSVhsv(108, 80%, 45%)
CMYKcmyk(64%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.10, -40.01, 40.71)
CIE-LCHlch(42.10, 57.08, 134.50°)
OKLaboklab(48.77% -0.1097 0.0912)
OKLCHoklch(48.77% 0.143 140.3)
XYZxyz(7.0861, 12.5672, 2.8627)
Luminance0.1257 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297217 #601772
analogous
#577217 #297217 #177233
triadic
#297217 #172972 #721729
tetradic
#297217 #175772 #601772 #723317
square
#297217 #175772 #601772 #723317
split-complementary
#297217 #331772 #721757
monochromatic
#091905 #173F0D #297217 #3BA521 #4FD52E

Accessibility & contrast

On white

5.98
#297217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#297217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297217
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297217#FFFFFF#000000##FFFFFF
##2972171.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#6C6121
Tritanopia (blue-blind)
#1F6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #297217;
/* rgb */ color: rgb(41, 114, 23);
/* oklch */ color: oklch(48.8% 0.143 140.3);
Tailwind
colors: {
  custom: {
    50: '#6d9b5c',
    500: '#297217',
    950: '#000000',
  },
}
SCSS
$custom: #297217;
$custom-light: #6d9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#297217",
  "rgb": {
    "r": 41,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 108.132,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.4877,
    "c": 0.14267,
    "h": 140.3
  },
  "luminance": 0.12568
}

Semantic roles & 50–950 ramp

primary
#297217
secondary
#933DA8
accent
#3EE9C8
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #297217

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

Preview Lab → · Contrast checker → · Palette generator →

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