#297312#297312

#297312 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.147 H 139.8°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#297312
RGBrgb(41, 115, 18)
HSLhsl(106, 73%, 26%)
HSVhsv(106, 84%, 45%)
CMYKcmyk(64.3%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.42, -40.72, 42.69)
CIE-LCHlch(42.42, 58.99, 133.64°)
OKLaboklab(49.03% -0.1119 0.0946)
OKLCHoklch(49.03% 0.147 139.8)
XYZxyz(7.1540, 12.7759, 2.6611)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297312 #5C1273
analogous
#597312 #297312 #12732B
triadic
#297312 #122973 #731229
tetradic
#297312 #125973 #5C1273 #732B12
square
#297312 #125973 #5C1273 #732B12
split-complementary
#297312 #2B1273 #731259
monochromatic
#091A04 #163E0A #297312 #3CA81A #4FDD23

Accessibility & contrast

On white

5.91
#297312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#297312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297312
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297312#FFFFFF#000000##FFFFFF
##2973121.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6D621E
Tritanopia (blue-blind)
#1F6F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #297312;
/* rgb */ color: rgb(41, 115, 18);
/* oklch */ color: oklch(49.0% 0.147 139.8);
Tailwind
colors: {
  custom: {
    50: '#6d9c5a',
    500: '#297312',
    950: '#000000',
  },
}
SCSS
$custom: #297312;
$custom-light: #6d9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#297312",
  "rgb": {
    "r": 41,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 105.773,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49026,
    "c": 0.14651,
    "h": 139.8
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#297312
secondary
#8F37AA
accent
#38F0C4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #297312

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

Preview Lab → · Contrast checker → · Palette generator →

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