#297417#297417

#297417 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.3% C 0.145 H 140.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#297417
RGBrgb(41, 116, 23)
HSLhsl(108, 67%, 27%)
HSVhsv(108, 80%, 45%)
CMYKcmyk(64.7%, 0%, 80.2%, 54.5%)
CIE-LABlab(42.80, -40.77, 41.38)
CIE-LCHlch(42.80, 58.09, 134.57°)
OKLaboklab(49.35% -0.1118 0.0926)
OKLCHoklch(49.35% 0.145 140.4)
XYZxyz(7.3142, 13.0234, 2.9388)
Luminance0.1302 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297417 #621774
analogous
#587417 #297417 #177434
triadic
#297417 #172974 #741729
tetradic
#297417 #175874 #621774 #743417
square
#297417 #175874 #621774 #743417
split-complementary
#297417 #341774 #741758
monochromatic
#091A05 #17410D #297417 #3BA721 #50D630

Accessibility & contrast

On white

5.83
#297417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#297417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297417
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297417#FFFFFF#000000##FFFFFF
##2974171.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#6E6321
Tritanopia (blue-blind)
#1E7063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #297417;
/* rgb */ color: rgb(41, 116, 23);
/* oklch */ color: oklch(49.3% 0.145 140.4);
Tailwind
colors: {
  custom: {
    50: '#6d9d5c',
    500: '#297417',
    950: '#000000',
  },
}
SCSS
$custom: #297417;
$custom-light: #6d9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#297417",
  "rgb": {
    "r": 41,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 108.387,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49345,
    "c": 0.14515,
    "h": 140.4
  },
  "luminance": 0.13024
}

Semantic roles & 50–950 ramp

primary
#297417
secondary
#953DA9
accent
#3EEAC9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #297417

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

Preview Lab → · Contrast checker → · Palette generator →

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