#0D5228#0D5228

#0D5228 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.7% C 0.096 H 151.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#0D5228
RGBrgb(13, 82, 40)
HSLhsl(143, 73%, 19%)
HSVhsv(143, 84%, 32%)
CMYKcmyk(84.1%, 0%, 51.2%, 67.8%)
CIE-LABlab(30.09, -31.28, 18.86)
CIE-LCHlch(30.09, 36.53, 148.91°)
OKLaboklab(38.68% -0.0841 0.0462)
OKLCHoklch(38.68% 0.096 151.2)
XYZxyz(3.5660, 6.2729, 3.0299)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D5228 #520D37
analogous
#14520D #0D5228 #0D524A
triadic
#0D5228 #280D52 #52280D
tetradic
#0D5228 #0D1452 #520D37 #524A0D
square
#0D5228 #0D1452 #520D37 #524A0D
split-complementary
#0D5228 #4A0D52 #520D14
monochromatic
#041A0D #051D0E #0D5228 #158742 #1EBC5C

Accessibility & contrast

On white

9.31
#0D5228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#0D5228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D5228
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D5228#FFFFFF#000000##FFFFFF
##0D52281.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524A25
Deuteranopia (green-blind)
#4A452B
Tritanopia (blue-blind)
#005148
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0d5228;
/* rgb */ color: rgb(13, 82, 40);
/* oklch */ color: oklch(38.7% 0.096 151.2);
Tailwind
colors: {
  custom: {
    50: '#598362',
    500: '#0d5228',
    950: '#000000',
  },
}
SCSS
$custom: #0d5228;
$custom-light: #598362;
$custom-dark: #000000;
JSON
{
  "hex": "#0d5228",
  "rgb": {
    "r": 13,
    "g": 82,
    "b": 40
  },
  "hsl": {
    "h": 143.478,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38679,
    "c": 0.0959,
    "h": 151.2
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#0D5228
secondary
#8D2E68
accent
#38A8EF
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #0D5228

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

Preview Lab → · Contrast checker → · Palette generator →

#0D5228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva