#297F1F#297F1F

#297F1F is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.154 H 141.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#297F1F
RGBrgb(41, 127, 31)
HSLhsl(114, 61%, 31%)
HSVhsv(114, 76%, 50%)
CMYKcmyk(67.7%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.64, -44.24, 42.22)
CIE-LCHlch(46.64, 61.15, 136.34°)
OKLaboklab(52.54% -0.1207 0.0955)
OKLCHoklch(52.54% 0.154 141.6)
XYZxyz(8.7507, 15.7482, 3.8746)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297F1F #751F7F
analogous
#597F1F #297F1F #1F7F45
triadic
#297F1F #1F297F #7F1F29
tetradic
#297F1F #1F597F #751F7F #7F451F
square
#297F1F #1F597F #751F7F #7F451F
split-complementary
#297F1F #451F7F #7F1F59
monochromatic
#091D07 #194E13 #297F1F #39B02B #55D246

Accessibility & contrast

On white

5.06
#297F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#297F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297F1F
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297F1F#FFFFFF#000000##FFFFFF
##297F1F1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#187B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #297f1f;
/* rgb */ color: rgb(41, 127, 31);
/* oklch */ color: oklch(52.5% 0.154 141.6);
Tailwind
colors: {
  custom: {
    50: '#6fa561',
    500: '#297f1f',
    950: '#000000',
  },
}
SCSS
$custom: #297f1f;
$custom-light: #6fa561;
$custom-dark: #000000;
JSON
{
  "hex": "#297f1f",
  "rgb": {
    "r": 41,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 113.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52544,
    "c": 0.15391,
    "h": 141.6
  },
  "luminance": 0.15749
}

Semantic roles & 50–950 ramp

primary
#297F1F
secondary
#A748B2
accent
#44E4D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #297F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#297F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva