#286228#286228

#286228 is a dark, moderate green. Relative luminance 0.093; OKLCH L 44.3% C 0.108 H 143.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#286228
RGBrgb(40, 98, 40)
HSLhsl(120, 42%, 27%)
HSVhsv(120, 59%, 38%)
CMYKcmyk(59.2%, 0%, 59.2%, 61.6%)
CIE-LABlab(36.63, -32.00, 27.07)
CIE-LCHlch(36.63, 41.91, 139.77°)
OKLaboklab(44.29% -0.087 0.0644)
OKLCHoklch(44.29% 0.108 143.5)
XYZxyz(5.6255, 9.3392, 3.5133)
Luminance0.0934 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286228 #622862
analogous
#456228 #286228 #286245
triadic
#286228 #282862 #622828
tetradic
#286228 #284562 #622862 #624528
square
#286228 #284562 #622862 #624528
split-complementary
#286228 #452862 #622845
monochromatic
#091609 #163716 #286228 #3A8D3A #4EB74E

Accessibility & contrast

On white

7.32
#286228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#286228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #286228
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286228#FFFFFF#000000##FFFFFF
##2862281.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645922
Deuteranopia (green-blind)
#5C542C
Tritanopia (blue-blind)
#1F5F55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #286228;
/* rgb */ color: rgb(40, 98, 40);
/* oklch */ color: oklch(44.3% 0.108 143.5);
Tailwind
colors: {
  custom: {
    50: '#688f64',
    500: '#286228',
    950: '#000000',
  },
}
SCSS
$custom: #286228;
$custom-light: #688f64;
$custom-dark: #000000;
JSON
{
  "hex": "#286228",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 40
  },
  "hsl": {
    "h": 120,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.44293,
    "c": 0.10821,
    "h": 143.5
  },
  "luminance": 0.0934
}

Semantic roles & 50–950 ramp

primary
#286228
secondary
#955195
accent
#56D2D2
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#070C05
muted
#7A7D7A

Preview Lab

Preview with #286228

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

Preview Lab → · Contrast checker → · Palette generator →

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