#297917#297917

#297917 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.151 H 140.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#297917
RGBrgb(41, 121, 23)
HSLhsl(109, 68%, 28%)
HSVhsv(109, 81%, 47%)
CMYKcmyk(66.1%, 0%, 81%, 52.5%)
CIE-LABlab(44.53, -42.64, 43.05)
CIE-LCHlch(44.53, 60.59, 134.72°)
OKLaboklab(50.78% -0.1168 0.0961)
OKLCHoklch(50.78% 0.151 140.6)
XYZxyz(7.9061, 14.2072, 3.1361)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297917 #671779
analogous
#5A7917 #297917 #177936
triadic
#297917 #172979 #791729
tetradic
#297917 #175A79 #671779 #793617
square
#297917 #175A79 #671779 #793617
split-complementary
#297917 #361779 #79175A
monochromatic
#091A05 #18460D #297917 #3AAC21 #51D832

Accessibility & contrast

On white

5.47
#297917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#297917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297917
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297917#FFFFFF#000000##FFFFFF
##2979171.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#736722
Tritanopia (blue-blind)
#1C7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #297917;
/* rgb */ color: rgb(41, 121, 23);
/* oklch */ color: oklch(50.8% 0.151 140.6);
Tailwind
colors: {
  custom: {
    50: '#6ea05d',
    500: '#297917',
    950: '#000000',
  },
}
SCSS
$custom: #297917;
$custom-light: #6ea05d;
$custom-dark: #000000;
JSON
{
  "hex": "#297917",
  "rgb": {
    "r": 41,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 108.98,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50777,
    "c": 0.15125,
    "h": 140.6
  },
  "luminance": 0.14208
}

Semantic roles & 50–950 ramp

primary
#297917
secondary
#993EAE
accent
#3DEBCB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #297917

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

Preview Lab → · Contrast checker → · Palette generator →

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