#228731#228731

#228731 is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.153 H 145.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#228731
RGBrgb(34, 135, 49)
HSLhsl(129, 60%, 33%)
HSVhsv(129, 75%, 53%)
CMYKcmyk(74.8%, 0%, 63.7%, 47.1%)
CIE-LABlab(49.36, -46.65, 37.28)
CIE-LCHlch(49.36, 59.72, 141.37°)
OKLaboklab(54.8% -0.1259 0.0873)
OKLCHoklch(54.8% 0.153 145.3)
XYZxyz(9.8774, 17.8887, 5.8374)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228731 #872278
analogous
#458722 #228731 #228763
triadic
#228731 #312287 #873122
tetradic
#228731 #224587 #872278 #876322
square
#228731 #224587 #872278 #876322
split-complementary
#228731 #632287 #872245
monochromatic
#09250E #16561F #228731 #2EB843 #50D364

Accessibility & contrast

On white

4.59
#228731 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#228731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #228731
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228731#FFFFFF#000000##FFFFFF
##2287311.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A27
Deuteranopia (green-blind)
#7E7238
Tritanopia (blue-blind)
#008375
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #228731;
/* rgb */ color: rgb(34, 135, 49);
/* oklch */ color: oklch(54.8% 0.153 145.3);
Tailwind
colors: {
  custom: {
    50: '#6eab6c',
    500: '#228731',
    950: '#000000',
  },
}
SCSS
$custom: #228731;
$custom-light: #6eab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#228731",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 128.911,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54799,
    "c": 0.15325,
    "h": 145.3
  },
  "luminance": 0.1789
}

Semantic roles & 50–950 ramp

primary
#228731
secondary
#B74EA7
accent
#45CBE3
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228731

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

Preview Lab → · Contrast checker → · Palette generator →

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