#297A42#297A42

#297A42 is a mid, moderate green. Relative luminance 0.148; OKLCH L 51.6% C 0.117 H 150.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#297A42
RGBrgb(41, 122, 66)
HSLhsl(139, 50%, 32%)
HSVhsv(139, 66%, 48%)
CMYKcmyk(66.4%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.34, -37.70, 23.62)
CIE-LCHlch(45.34, 44.49, 147.93°)
OKLaboklab(51.59% -0.1017 0.0581)
OKLCHoklch(51.59% 0.117 150.3)
XYZxyz(8.8567, 14.7829, 7.5398)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297A42 #7A2961
analogous
#387A29 #297A42 #297A6B
triadic
#297A42 #42297A #7A4229
tetradic
#297A42 #29387A #7A2961 #7A6B29
square
#297A42 #29387A #7A2961 #7A6B29
split-complementary
#297A42 #6B297A #7A2938
monochromatic
#0A1E10 #1A4C29 #297A42 #38A85B #57C779

Accessibility & contrast

On white

5.31
#297A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#297A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297A42
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297A42#FFFFFF#000000##FFFFFF
##297A421.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#706846
Tritanopia (blue-blind)
#0A786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #297a42;
/* rgb */ color: rgb(41, 122, 66);
/* oklch */ color: oklch(51.6% 0.117 150.3);
Tailwind
colors: {
  custom: {
    50: '#6da177',
    500: '#297a42',
    950: '#000000',
  },
}
SCSS
$custom: #297a42;
$custom-light: #6da177;
$custom-dark: #000000;
JSON
{
  "hex": "#297a42",
  "rgb": {
    "r": 41,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 138.519,
    "s": 49.693,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51593,
    "c": 0.11718,
    "h": 150.3
  },
  "luminance": 0.14784
}

Semantic roles & 50–950 ramp

primary
#297A42
secondary
#AC5390
accent
#4FAED9
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #297A42

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

Preview Lab → · Contrast checker → · Palette generator →

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