#238D42#238D42

#238D42 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.146 H 148.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#238D42
RGBrgb(35, 141, 66)
HSLhsl(138, 60%, 35%)
HSVhsv(138, 75%, 55%)
CMYKcmyk(75.2%, 0%, 53.2%, 44.7%)
CIE-LABlab(51.61, -46.29, 31.48)
CIE-LCHlch(51.61, 55.98, 145.78°)
OKLaboklab(56.73% -0.1245 0.076)
OKLCHoklch(56.73% 0.146 148.6)
XYZxyz(11.2005, 19.7991, 8.3845)
Luminance0.1980 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#238D42 #8D236E
analogous
#398D23 #238D42 #238D77
triadic
#238D42 #42238D #8D4223
tetradic
#238D42 #23398D #8D236E #8D7723
square
#238D42 #23398D #8D236E #8D7723
split-complementary
#238D42 #77238D #8D2339
monochromatic
#0B2B14 #175C2B #238D42 #2FBE59 #55D57B

Accessibility & contrast

On white

4.23
#238D42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#238D42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #238D42
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##238D42#FFFFFF#000000##000000
##238D421.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E803B
Deuteranopia (green-blind)
#827848
Tritanopia (blue-blind)
#008A7C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #238d42;
/* rgb */ color: rgb(35, 141, 66);
/* oklch */ color: oklch(56.7% 0.146 148.6);
Tailwind
colors: {
  custom: {
    50: '#6faf78',
    500: '#238d42',
    950: '#000000',
  },
}
SCSS
$custom: #238d42;
$custom-light: #6faf78;
$custom-dark: #000000;
JSON
{
  "hex": "#238d42",
  "rgb": {
    "r": 35,
    "g": 141,
    "b": 66
  },
  "hsl": {
    "h": 137.547,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56732,
    "c": 0.14585,
    "h": 148.6
  },
  "luminance": 0.198
}

Semantic roles & 50–950 ramp

primary
#238D42
secondary
#B9539B
accent
#44B5E3
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #238D42

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

Preview Lab → · Contrast checker → · Palette generator →

#238D42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva