#297117#297117

#297117 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.5% C 0.141 H 140.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#297117
RGBrgb(41, 113, 23)
HSLhsl(108, 66%, 27%)
HSVhsv(108, 80%, 44%)
CMYKcmyk(63.7%, 0%, 79.6%, 55.7%)
CIE-LABlab(41.76, -39.63, 40.37)
CIE-LCHlch(41.76, 56.57, 134.47°)
OKLaboklab(48.48% -0.1087 0.0905)
OKLCHoklch(48.48% 0.141 140.2)
XYZxyz(6.9739, 12.3429, 2.8253)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297117 #5F1771
analogous
#567117 #297117 #177132
triadic
#297117 #172971 #711729
tetradic
#297117 #175671 #5F1771 #713217
square
#297117 #175671 #5F1771 #713217
split-complementary
#297117 #321771 #711756
monochromatic
#091905 #173E0D #297117 #3BA421 #4FD42E

Accessibility & contrast

On white

6.05
#297117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#297117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297117
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297117#FFFFFF#000000##FFFFFF
##2971171.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746603
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#1F6D60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #297117;
/* rgb */ color: rgb(41, 113, 23);
/* oklch */ color: oklch(48.5% 0.141 140.2);
Tailwind
colors: {
  custom: {
    50: '#6d9a5b',
    500: '#297117',
    950: '#000000',
  },
}
SCSS
$custom: #297117;
$custom-light: #6d9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#297117",
  "rgb": {
    "r": 41,
    "g": 113,
    "b": 23
  },
  "hsl": {
    "h": 108,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48482,
    "c": 0.14143,
    "h": 140.2
  },
  "luminance": 0.12344
}

Semantic roles & 50–950 ramp

primary
#297117
secondary
#923DA7
accent
#3FE9C7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #297117

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

Preview Lab → · Contrast checker → · Palette generator →

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