#297F2E#297F2E

#297F2E is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.143 H 144.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#297F2E
RGBrgb(41, 127, 46)
HSLhsl(123, 51%, 33%)
HSVhsv(123, 68%, 50%)
CMYKcmyk(67.7%, 0%, 63.8%, 50.2%)
CIE-LABlab(46.77, -42.70, 35.81)
CIE-LCHlch(46.77, 55.73, 140.02°)
OKLaboklab(52.69% -0.1157 0.0838)
OKLCHoklch(52.69% 0.143 144.1)
XYZxyz(8.9964, 15.8465, 5.1688)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297F2E #7F297A
analogous
#4F7F29 #297F2E #297F59
triadic
#297F2E #2E297F #7F2E29
tetradic
#297F2E #294F7F #7F297A #7F5929
square
#297F2E #294F7F #7F297A #7F5929
split-complementary
#297F2E #59297F #7F294F
monochromatic
#0B220C #1A511D #297F2E #38AD3F #59C960

Accessibility & contrast

On white

5.04
#297F2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #297F2E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297F2E#FFFFFF#000000##FFFFFF
##297F2E1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #297f2e;
/* rgb */ color: rgb(41, 127, 46);
/* oklch */ color: oklch(52.7% 0.143 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fa56a',
    500: '#297f2e',
    950: '#000000',
  },
}
SCSS
$custom: #297f2e;
$custom-light: #6fa56a;
$custom-dark: #000000;
JSON
{
  "hex": "#297f2e",
  "rgb": {
    "r": 41,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 123.488,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.1429,
    "h": 144.1
  },
  "luminance": 0.15847
}

Semantic roles & 50–950 ramp

primary
#297F2E
secondary
#AF55AA
accent
#4DD2DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #297F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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