#298227#298227

#298227 is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.5% C 0.152 H 142.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#298227
RGBrgb(41, 130, 39)
HSLhsl(119, 54%, 33%)
HSVhsv(119, 70%, 51%)
CMYKcmyk(68.5%, 0%, 70%, 49%)
CIE-LABlab(47.73, -44.60, 40.06)
CIE-LCHlch(47.73, 59.95, 138.07°)
OKLaboklab(53.46% -0.1212 0.0921)
OKLCHoklch(53.46% 0.152 142.8)
XYZxyz(9.2628, 16.5822, 4.6316)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#298227 #802782
analogous
#568227 #298227 #278252
triadic
#298227 #272982 #822729
tetradic
#298227 #275682 #802782 #825227
square
#298227 #275682 #802782 #825227
split-complementary
#298227 #522782 #822756
monochromatic
#0B240B #1A5319 #298227 #38B135 #59CD57

Accessibility & contrast

On white

4.86
#298227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#298227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #298227
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##298227#FFFFFF#000000##FFFFFF
##2982271.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761A
Deuteranopia (green-blind)
#7A6E2F
Tritanopia (blue-blind)
#147E70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #298227;
/* rgb */ color: rgb(41, 130, 39);
/* oklch */ color: oklch(53.5% 0.152 142.8);
Tailwind
colors: {
  custom: {
    50: '#70a766',
    500: '#298227',
    950: '#000000',
  },
}
SCSS
$custom: #298227;
$custom-light: #70a766;
$custom-dark: #000000;
JSON
{
  "hex": "#298227",
  "rgb": {
    "r": 41,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 118.681,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53464,
    "c": 0.15222,
    "h": 142.8
  },
  "luminance": 0.16583
}

Semantic roles & 50–950 ramp

primary
#298227
secondary
#AF53B1
accent
#4BDDDA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #298227

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

Preview Lab → · Contrast checker → · Palette generator →

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