#124228#124228

#124228 is a dark, moderate green. Relative luminance 0.042; OKLCH L 33.9% C 0.069 H 155.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#124228
RGBrgb(18, 66, 40)
HSLhsl(148, 57%, 16%)
HSVhsv(148, 73%, 26%)
CMYKcmyk(72.7%, 0%, 39.4%, 74.1%)
CIE-LABlab(24.25, -23.22, 11.24)
CIE-LCHlch(24.25, 25.80, 154.17°)
OKLaboklab(33.9% -0.063 0.0283)
OKLCHoklch(33.9% 0.069 155.8)
XYZxyz(2.5804, 4.1780, 2.6775)
Luminance0.0418 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#124228 #42122C
analogous
#144212 #124228 #124240
triadic
#124228 #281242 #422812
tetradic
#124228 #121442 #42122C #424012
square
#124228 #121442 #42122C #424012
split-complementary
#124228 #401242 #421214
monochromatic
#07180F #07180F #124228 #1F7245 #2CA262

Accessibility & contrast

On white

11.44
#124228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#124228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #124228
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##124228#FFFFFF#000000##FFFFFF
##1242281.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423C26
Deuteranopia (green-blind)
#3B382A
Tritanopia (blue-blind)
#00413B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #124228;
/* rgb */ color: rgb(18, 66, 40);
/* oklch */ color: oklch(33.9% 0.069 155.8);
Tailwind
colors: {
  custom: {
    50: '#577762',
    500: '#124228',
    950: '#000000',
  },
}
SCSS
$custom: #124228;
$custom-light: #577762;
$custom-dark: #000000;
JSON
{
  "hex": "#124228",
  "rgb": {
    "r": 18,
    "g": 66,
    "b": 40
  },
  "hsl": {
    "h": 147.5,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.06903,
    "h": 155.8
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#124228
secondary
#7B355B
accent
#479AE0
background
#F5F7F5
surface
#E9EDEA
border
#C5C8C6
text
#030805
muted
#787B79

Preview Lab

Preview with #124228

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

Preview Lab → · Contrast checker → · Palette generator →

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