#238F42#238F42

#238F42 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.148 H 148.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#238F42
RGBrgb(35, 143, 66)
HSLhsl(137, 61%, 35%)
HSVhsv(137, 76%, 56%)
CMYKcmyk(75.5%, 0%, 53.8%, 43.9%)
CIE-LABlab(52.28, -47.02, 32.30)
CIE-LCHlch(52.28, 57.05, 145.51°)
OKLaboklab(57.29% -0.1265 0.0778)
OKLCHoklch(57.29% 0.149 148.4)
XYZxyz(11.4981, 20.3943, 8.4837)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#238F42 #8F2370
analogous
#3A8F23 #238F42 #238F78
triadic
#238F42 #42238F #8F4223
tetradic
#238F42 #233A8F #8F2370 #8F7823
square
#238F42 #233A8F #8F2370 #8F7823
split-complementary
#238F42 #78238F #8F233A
monochromatic
#0B2D15 #175E2B #238F42 #2FC059 #57D67B

Accessibility & contrast

On white

4.13
#238F42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#238F42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #238F42
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##238F42#FFFFFF#000000##000000
##238F421.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90823B
Deuteranopia (green-blind)
#847948
Tritanopia (blue-blind)
#008C7D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #238f42;
/* rgb */ color: rgb(35, 143, 66);
/* oklch */ color: oklch(57.3% 0.148 148.4);
Tailwind
colors: {
  custom: {
    50: '#6fb178',
    500: '#238f42',
    950: '#000000',
  },
}
SCSS
$custom: #238f42;
$custom-light: #6fb178;
$custom-dark: #000000;
JSON
{
  "hex": "#238f42",
  "rgb": {
    "r": 35,
    "g": 143,
    "b": 66
  },
  "hsl": {
    "h": 137.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57287,
    "c": 0.1485,
    "h": 148.4
  },
  "luminance": 0.20396
}

Semantic roles & 50–950 ramp

primary
#238F42
secondary
#BA549D
accent
#44B6E4
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#081109
muted
#7B807B

Preview Lab

Preview with #238F42

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

Preview Lab → · Contrast checker → · Palette generator →

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