#297818#297818

#297818 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.149 H 140.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#297818
RGBrgb(41, 120, 24)
HSLhsl(109, 67%, 28%)
HSVhsv(109, 80%, 47%)
CMYKcmyk(65.8%, 0%, 80%, 52.9%)
CIE-LABlab(44.19, -42.20, 42.38)
CIE-LCHlch(44.19, 59.81, 134.88°)
OKLaboklab(50.5% -0.1156 0.0948)
OKLCHoklch(50.5% 0.15 140.6)
XYZxyz(7.7954, 13.9695, 3.1496)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297818 #671878
analogous
#597818 #297818 #187837
triadic
#297818 #182978 #781829
tetradic
#297818 #185978 #671878 #783718
square
#297818 #185978 #671878 #783718
split-complementary
#297818 #371878 #781859
monochromatic
#091A05 #18450E #297818 #3AAB22 #51D634

Accessibility & contrast

On white

5.54
#297818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#297818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297818
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297818#FFFFFF#000000##FFFFFF
##2978181.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#1C7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #297818;
/* rgb */ color: rgb(41, 120, 24);
/* oklch */ color: oklch(50.5% 0.149 140.6);
Tailwind
colors: {
  custom: {
    50: '#6ea05d',
    500: '#297818',
    950: '#000000',
  },
}
SCSS
$custom: #297818;
$custom-light: #6ea05d;
$custom-dark: #000000;
JSON
{
  "hex": "#297818",
  "rgb": {
    "r": 41,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 109.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.1495,
    "h": 140.6
  },
  "luminance": 0.1397
}

Semantic roles & 50–950 ramp

primary
#297818
secondary
#993FAD
accent
#3EEACB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #297818

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

Preview Lab → · Contrast checker → · Palette generator →

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