#255212#255212

#255212 is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.2% C 0.106 H 138.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#255212
RGBrgb(37, 82, 18)
HSLhsl(102, 64%, 20%)
HSVhsv(102, 78%, 32%)
CMYKcmyk(54.9%, 0%, 78%, 67.8%)
CIE-LABlab(30.57, -28.44, 31.14)
CIE-LCHlch(30.57, 42.18, 132.40°)
OKLaboklab(39.2% -0.0786 0.0705)
OKLCHoklch(39.2% 0.106 138.1)
XYZxyz(3.8893, 6.4713, 1.6163)
Luminance0.0647 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#255212 #3F1252
analogous
#455212 #255212 #12521F
triadic
#255212 #122552 #521225
tetradic
#255212 #124552 #3F1252 #521F12
square
#255212 #124552 #3F1252 #521F12
split-complementary
#255212 #1F1252 #521245
monochromatic
#0B1906 #0E2007 #255212 #3C841D #52B628

Accessibility & contrast

On white

9.15
#255212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#255212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #255212
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##255212#FFFFFF#000000##FFFFFF
##2552121.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A07
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#224F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #255212;
/* rgb */ color: rgb(37, 82, 18);
/* oklch */ color: oklch(39.2% 0.106 138.1);
Tailwind
colors: {
  custom: {
    50: '#658354',
    500: '#255212',
    950: '#000000',
  },
}
SCSS
$custom: #255212;
$custom-light: #658354;
$custom-dark: #000000;
JSON
{
  "hex": "#255212",
  "rgb": {
    "r": 37,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 102.188,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39201,
    "c": 0.10556,
    "h": 138.1
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#255212
secondary
#71358B
accent
#41E7B6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #255212

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

Preview Lab → · Contrast checker → · Palette generator →

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