#245212#245212

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

Color values

HEX#245212
RGBrgb(36, 82, 18)
HSLhsl(103, 64%, 20%)
HSVhsv(103, 78%, 32%)
CMYKcmyk(56.1%, 0%, 78%, 67.8%)
CIE-LABlab(30.53, -28.78, 31.08)
CIE-LCHlch(30.53, 42.36, 132.79°)
OKLaboklab(39.15% -0.0794 0.0704)
OKLCHoklch(39.15% 0.106 138.4)
XYZxyz(3.8539, 6.4530, 1.6146)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#245212 #401252
analogous
#445212 #245212 #125220
triadic
#245212 #122452 #521224
tetradic
#245212 #124452 #401252 #522012
square
#245212 #124452 #401252 #522012
split-complementary
#245212 #201252 #521244
monochromatic
#0B1906 #0E2007 #245212 #3A841D #50B628

Accessibility & contrast

On white

9.17
#245212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #245212
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##245212#FFFFFF#000000##FFFFFF
##2452121.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #245212;
/* rgb */ color: rgb(36, 82, 18);
/* oklch */ color: oklch(39.2% 0.106 138.4);
Tailwind
colors: {
  custom: {
    50: '#648354',
    500: '#245212',
    950: '#000000',
  },
}
SCSS
$custom: #245212;
$custom-light: #648354;
$custom-dark: #000000;
JSON
{
  "hex": "#245212",
  "rgb": {
    "r": 36,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 103.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.10612,
    "h": 138.4
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#245212
secondary
#73358B
accent
#41E7B8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #245212

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

Preview Lab → · Contrast checker → · Palette generator →

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