#238A42#238A42

#238A42 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.9% C 0.142 H 148.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#238A42
RGBrgb(35, 138, 66)
HSLhsl(138, 60%, 34%)
HSVhsv(138, 75%, 54%)
CMYKcmyk(74.6%, 0%, 52.2%, 45.9%)
CIE-LABlab(50.60, -45.17, 30.24)
CIE-LCHlch(50.60, 54.35, 146.20°)
OKLaboklab(55.9% -0.1215 0.0732)
OKLCHoklch(55.9% 0.142 148.9)
XYZxyz(10.7641, 18.9264, 8.2391)
Luminance0.1893 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#238A42 #8A236B
analogous
#388A23 #238A42 #238A76
triadic
#238A42 #42238A #8A4223
tetradic
#238A42 #23388A #8A236B #8A7623
square
#238A42 #23388A #8A236B #8A7623
split-complementary
#238A42 #76238A #8A2338
monochromatic
#0A2813 #17592B #238A42 #2FBB59 #54D47A

Accessibility & contrast

On white

4.39
#238A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#238A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #238A42
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##238A42#FFFFFF#000000##000000
##238A421.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7E3C
Deuteranopia (green-blind)
#7F7547
Tritanopia (blue-blind)
#008779
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #238a42;
/* rgb */ color: rgb(35, 138, 66);
/* oklch */ color: oklch(55.9% 0.142 148.9);
Tailwind
colors: {
  custom: {
    50: '#6ead78',
    500: '#238a42',
    950: '#000000',
  },
}
SCSS
$custom: #238a42;
$custom-light: #6ead78;
$custom-dark: #000000;
JSON
{
  "hex": "#238a42",
  "rgb": {
    "r": 35,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 138.058,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55898,
    "c": 0.14184,
    "h": 148.9
  },
  "luminance": 0.18928
}

Semantic roles & 50–950 ramp

primary
#238A42
secondary
#B75199
accent
#45B3E3
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #238A42

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

Preview Lab → · Contrast checker → · Palette generator →

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