#298A1F#298A1F

#298A1F is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.6% C 0.167 H 141.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#298A1F
RGBrgb(41, 138, 31)
HSLhsl(114, 63%, 33%)
HSVhsv(114, 78%, 54%)
CMYKcmyk(70.3%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.39, -48.17, 45.97)
CIE-LCHlch(50.39, 66.58, 136.34°)
OKLaboklab(55.65% -0.1313 0.1033)
OKLCHoklch(55.65% 0.167 141.8)
XYZxyz(10.2497, 18.7462, 4.3743)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#298A1F #801F8A
analogous
#5E8A1F #298A1F #1F8A4B
triadic
#298A1F #1F298A #8A1F29
tetradic
#298A1F #1F5E8A #801F8A #8A4B1F
square
#298A1F #1F5E8A #801F8A #8A4B1F
split-complementary
#298A1F #4B1F8A #8A1F5E
monochromatic
#0B2609 #1A5814 #298A1F #38BC2A #59D74C

Accessibility & contrast

On white

4.42
#298A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#298A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #298A1F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##298A1F#FFFFFF#000000##000000
##298A1F1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D07
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#128676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #298a1f;
/* rgb */ color: rgb(41, 138, 31);
/* oklch */ color: oklch(55.6% 0.167 141.8);
Tailwind
colors: {
  custom: {
    50: '#72ad63',
    500: '#298a1f',
    950: '#000000',
  },
}
SCSS
$custom: #298a1f;
$custom-light: #72ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#298a1f",
  "rgb": {
    "r": 41,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 114.393,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55649,
    "c": 0.1671,
    "h": 141.8
  },
  "luminance": 0.18747
}

Semantic roles & 50–950 ramp

primary
#298A1F
secondary
#AF4BBA
accent
#41E6D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #298A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#298A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva