#238C42#238C42

#238C42 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.5% C 0.145 H 148.7°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#238C42
RGBrgb(35, 140, 66)
HSLhsl(138, 60%, 34%)
HSVhsv(138, 75%, 55%)
CMYKcmyk(75%, 0%, 52.9%, 45.1%)
CIE-LABlab(51.27, -45.91, 31.07)
CIE-LCHlch(51.27, 55.44, 145.92°)
OKLaboklab(56.45% -0.1235 0.075)
OKLCHoklch(56.45% 0.145 148.7)
XYZxyz(11.0537, 19.5056, 8.3356)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#238C42 #8C236D
analogous
#398C23 #238C42 #238C77
triadic
#238C42 #42238C #8C4223
tetradic
#238C42 #23398C #8C236D #8C7723
square
#238C42 #23398C #8C236D #8C7723
split-complementary
#238C42 #77238C #8C2339
monochromatic
#0B2A14 #175B2B #238C42 #2FBD59 #55D47B

Accessibility & contrast

On white

4.28
#238C42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#238C42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #238C42
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##238C42#FFFFFF#000000##000000
##238C421.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7F3C
Deuteranopia (green-blind)
#817747
Tritanopia (blue-blind)
#00897B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #238c42;
/* rgb */ color: rgb(35, 140, 66);
/* oklch */ color: oklch(56.5% 0.145 148.7);
Tailwind
colors: {
  custom: {
    50: '#6eaf78',
    500: '#238c42',
    950: '#000000',
  },
}
SCSS
$custom: #238c42;
$custom-light: #6eaf78;
$custom-dark: #000000;
JSON
{
  "hex": "#238c42",
  "rgb": {
    "r": 35,
    "g": 140,
    "b": 66
  },
  "hsl": {
    "h": 137.714,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56454,
    "c": 0.14453,
    "h": 148.7
  },
  "luminance": 0.19507
}

Semantic roles & 50–950 ramp

primary
#238C42
secondary
#B8529A
accent
#45B4E3
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #238C42

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

Preview Lab → · Contrast checker → · Palette generator →

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