#297828#297828

#297828 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.6% C 0.139 H 143.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#297828
RGBrgb(41, 120, 40)
HSLhsl(119, 50%, 31%)
HSVhsv(119, 67%, 47%)
CMYKcmyk(65.8%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.31, -40.73, 35.89)
CIE-LCHlch(44.31, 54.29, 138.61°)
OKLaboklab(50.64% -0.1107 0.0834)
OKLCHoklch(50.64% 0.139 143)
XYZxyz(8.0135, 14.0568, 4.2980)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297828 #772878
analogous
#517828 #297828 #28784F
triadic
#297828 #282978 #782829
tetradic
#297828 #285178 #772878 #784F28
square
#297828 #285178 #772878 #784F28
split-complementary
#297828 #4F2878 #782851
monochromatic
#0A1C09 #194A19 #297828 #39A637 #56C654

Accessibility & contrast

On white

5.51
#297828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#297828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297828
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297828#FFFFFF#000000##FFFFFF
##2978281.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#71662F
Tritanopia (blue-blind)
#197467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #297828;
/* rgb */ color: rgb(41, 120, 40);
/* oklch */ color: oklch(50.6% 0.139 143.0);
Tailwind
colors: {
  custom: {
    50: '#6da066',
    500: '#297828',
    950: '#000000',
  },
}
SCSS
$custom: #297828;
$custom-light: #6da066;
$custom-dark: #000000;
JSON
{
  "hex": "#297828",
  "rgb": {
    "r": 41,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 119.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50641,
    "c": 0.13857,
    "h": 143
  },
  "luminance": 0.14058
}

Semantic roles & 50–950 ramp

primary
#297828
secondary
#A952AA
accent
#4EDAD8
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080F06
muted
#7A7E7A

Preview Lab

Preview with #297828

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

Preview Lab → · Contrast checker → · Palette generator →

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