#297817#297817

#297817 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.150 H 140.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#297817
RGBrgb(41, 120, 23)
HSLhsl(109, 68%, 28%)
HSVhsv(109, 81%, 47%)
CMYKcmyk(65.8%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.18, -42.27, 42.72)
CIE-LCHlch(44.18, 60.10, 134.69°)
OKLaboklab(50.49% -0.1158 0.0954)
OKLCHoklch(50.49% 0.15 140.5)
XYZxyz(7.7852, 13.9655, 3.0958)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297817 #661778
analogous
#597817 #297817 #177835
triadic
#297817 #172978 #781729
tetradic
#297817 #175978 #661778 #783517
square
#297817 #175978 #661778 #783517
split-complementary
#297817 #351778 #781759
monochromatic
#091A05 #17450D #297817 #3BAB21 #51D832

Accessibility & contrast

On white

5.54
#297817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#297817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297817
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297817#FFFFFF#000000##FFFFFF
##2978171.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#1C7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #297817;
/* rgb */ color: rgb(41, 120, 23);
/* oklch */ color: oklch(50.5% 0.150 140.5);
Tailwind
colors: {
  custom: {
    50: '#6ea05c',
    500: '#297817',
    950: '#000000',
  },
}
SCSS
$custom: #297817;
$custom-light: #6ea05c;
$custom-dark: #000000;
JSON
{
  "hex": "#297817",
  "rgb": {
    "r": 41,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 108.866,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50491,
    "c": 0.15004,
    "h": 140.5
  },
  "luminance": 0.13966
}

Semantic roles & 50–950 ramp

primary
#297817
secondary
#983EAD
accent
#3DEBCA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #297817

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

Preview Lab → · Contrast checker → · Palette generator →

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