#297212#297212

#297212 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.7% C 0.145 H 139.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#297212
RGBrgb(41, 114, 18)
HSLhsl(106, 73%, 26%)
HSVhsv(106, 84%, 45%)
CMYKcmyk(64%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.08, -40.34, 42.37)
CIE-LCHlch(42.08, 58.50, 133.60°)
OKLaboklab(48.74% -0.1109 0.0939)
OKLCHoklch(48.74% 0.145 139.7)
XYZxyz(7.0406, 12.5491, 2.6233)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297212 #5B1272
analogous
#597212 #297212 #12722B
triadic
#297212 #122972 #721229
tetradic
#297212 #125972 #5B1272 #722B12
square
#297212 #125972 #5B1272 #722B12
split-complementary
#297212 #2B1272 #721259
monochromatic
#0A1A04 #163D0A #297212 #3CA71A #4FDC23

Accessibility & contrast

On white

5.98
#297212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#297212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297212
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297212#FFFFFF#000000##FFFFFF
##2972121.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6D611E
Tritanopia (blue-blind)
#1F6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #297212;
/* rgb */ color: rgb(41, 114, 18);
/* oklch */ color: oklch(48.7% 0.145 139.7);
Tailwind
colors: {
  custom: {
    50: '#6d9b59',
    500: '#297212',
    950: '#000000',
  },
}
SCSS
$custom: #297212;
$custom-light: #6d9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#297212",
  "rgb": {
    "r": 41,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 105.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48738,
    "c": 0.14531,
    "h": 139.7
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#297212
secondary
#8E37A9
accent
#38EFC4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #297212

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

Preview Lab → · Contrast checker → · Palette generator →

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