#2A5F12#2A5F12

#2A5F12 is a dark, vivid green. Relative luminance 0.087; OKLCH L 43.3% C 0.121 H 138.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2A5F12
RGBrgb(42, 95, 18)
HSLhsl(101, 68%, 22%)
HSVhsv(101, 81%, 37%)
CMYKcmyk(55.8%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.44, -32.44, 36.06)
CIE-LCHlch(35.44, 48.51, 131.98°)
OKLaboklab(43.27% -0.0897 0.0807)
OKLCHoklch(43.27% 0.121 138)
XYZxyz(5.1561, 8.7199, 1.9836)
Luminance0.0872 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F12 #47125F
analogous
#515F12 #2A5F12 #125F21
triadic
#2A5F12 #122A5F #5F122A
tetradic
#2A5F12 #12515F #47125F #5F2112
square
#2A5F12 #12515F #47125F #5F2112
split-complementary
#2A5F12 #21125F #5F1251
monochromatic
#0B1A05 #132C08 #2A5F12 #41921C #57C625

Accessibility & contrast

On white

7.65
#2A5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5F12
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F12#FFFFFF#000000##FFFFFF
##2A5F121.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5B521A
Tritanopia (blue-blind)
#265B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5f12;
/* rgb */ color: rgb(42, 95, 18);
/* oklch */ color: oklch(43.3% 0.121 138.0);
Tailwind
colors: {
  custom: {
    50: '#6a8d56',
    500: '#2a5f12',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f12;
$custom-light: #6a8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f12",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 101.299,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43268,
    "c": 0.1207,
    "h": 138
  },
  "luminance": 0.0872
}

Semantic roles & 50–950 ramp

primary
#2A5F12
secondary
#793697
accent
#3DEBB5
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5F12

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

Preview Lab → · Contrast checker → · Palette generator →

#2A5F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva