#297F2F#297F2F

#297F2F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.142 H 144.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#297F2F
RGBrgb(41, 127, 47)
HSLhsl(124, 51%, 33%)
HSVhsv(124, 68%, 50%)
CMYKcmyk(67.7%, 0%, 63%, 50.2%)
CIE-LABlab(46.78, -42.58, 35.34)
CIE-LCHlch(46.78, 55.34, 140.31°)
OKLaboklab(52.71% -0.1153 0.0829)
OKLCHoklch(52.71% 0.142 144.3)
XYZxyz(9.0164, 15.8545, 5.2738)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297F2F #7F2979
analogous
#4E7F29 #297F2F #297F5A
triadic
#297F2F #2F297F #7F2F29
tetradic
#297F2F #294E7F #7F2979 #7F5A29
square
#297F2F #294E7F #7F2979 #7F5A29
split-complementary
#297F2F #5A297F #7F294E
monochromatic
#0B220D #1A511E #297F2F #38AD40 #59C961

Accessibility & contrast

On white

5.03
#297F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#297F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297F2F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297F2F#FFFFFF#000000##FFFFFF
##297F2F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817326
Deuteranopia (green-blind)
#776C36
Tritanopia (blue-blind)
#137C6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #297f2f;
/* rgb */ color: rgb(41, 127, 47);
/* oklch */ color: oklch(52.7% 0.142 144.3);
Tailwind
colors: {
  custom: {
    50: '#6fa56b',
    500: '#297f2f',
    950: '#000000',
  },
}
SCSS
$custom: #297f2f;
$custom-light: #6fa56b;
$custom-dark: #000000;
JSON
{
  "hex": "#297f2f",
  "rgb": {
    "r": 41,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 124.186,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52705,
    "c": 0.14206,
    "h": 144.3
  },
  "luminance": 0.15855
}

Semantic roles & 50–950 ramp

primary
#297F2F
secondary
#AF55A8
accent
#4DD1DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #297F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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