#297412#297412

#297412 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.3% C 0.148 H 139.8°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#297412
RGBrgb(41, 116, 18)
HSLhsl(106, 73%, 26%)
HSVhsv(106, 84%, 45%)
CMYKcmyk(64.7%, 0%, 84.5%, 54.5%)
CIE-LABlab(42.77, -41.09, 43.01)
CIE-LCHlch(42.77, 59.49, 133.69°)
OKLaboklab(49.31% -0.1129 0.0953)
OKLCHoklch(49.31% 0.148 139.8)
XYZxyz(7.2687, 13.0052, 2.6994)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297412 #5D1274
analogous
#5A7412 #297412 #12742C
triadic
#297412 #122974 #741229
tetradic
#297412 #125A74 #5D1274 #742C12
square
#297412 #125A74 #5D1274 #742C12
split-complementary
#297412 #2C1274 #74125A
monochromatic
#091A04 #163F0A #297412 #3CA91A #4FDD23

Accessibility & contrast

On white

5.83
#297412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#297412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297412
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297412#FFFFFF#000000##FFFFFF
##2974121.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#6E631E
Tritanopia (blue-blind)
#1F7062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #297412;
/* rgb */ color: rgb(41, 116, 18);
/* oklch */ color: oklch(49.3% 0.148 139.8);
Tailwind
colors: {
  custom: {
    50: '#6e9d5a',
    500: '#297412',
    950: '#000000',
  },
}
SCSS
$custom: #297412;
$custom-light: #6e9d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#297412",
  "rgb": {
    "r": 41,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 105.918,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.49313,
    "c": 0.14772,
    "h": 139.8
  },
  "luminance": 0.13006
}

Semantic roles & 50–950 ramp

primary
#297412
secondary
#9037AB
accent
#38F0C5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #297412

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

Preview Lab → · Contrast checker → · Palette generator →

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