#288226#288226

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

Color values

HEX#288226
RGBrgb(40, 130, 38)
HSLhsl(119, 55%, 33%)
HSVhsv(119, 71%, 51%)
CMYKcmyk(69.2%, 0%, 70.8%, 49%)
CIE-LABlab(47.69, -44.92, 40.45)
CIE-LCHlch(47.69, 60.44, 138.00°)
OKLaboklab(53.43% -0.1221 0.0928)
OKLCHoklch(53.43% 0.153 142.8)
XYZxyz(9.2070, 16.5554, 4.5436)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288226 #802682
analogous
#568226 #288226 #268252
triadic
#288226 #262882 #822628
tetradic
#288226 #265682 #802682 #825226
square
#288226 #265682 #802682 #825226
split-complementary
#288226 #522682 #822656
monochromatic
#0B230A #195318 #288226 #37B134 #58CD55

Accessibility & contrast

On white

4.87
#288226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#288226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #288226
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288226#FFFFFF#000000##FFFFFF
##2882261.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857619
Deuteranopia (green-blind)
#7A6E2F
Tritanopia (blue-blind)
#127E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #288226;
/* rgb */ color: rgb(40, 130, 38);
/* oklch */ color: oklch(53.4% 0.153 142.8);
Tailwind
colors: {
  custom: {
    50: '#6fa765',
    500: '#288226',
    950: '#000000',
  },
}
SCSS
$custom: #288226;
$custom-light: #6fa765;
$custom-dark: #000000;
JSON
{
  "hex": "#288226",
  "rgb": {
    "r": 40,
    "g": 130,
    "b": 38
  },
  "hsl": {
    "h": 118.696,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53425,
    "c": 0.15332,
    "h": 142.8
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#288226
secondary
#B052B2
accent
#4ADEDB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #288226

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

Preview Lab → · Contrast checker → · Palette generator →

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