#2A5F16#2A5F16

#2A5F16 is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.3% C 0.118 H 138.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2A5F16
RGBrgb(42, 95, 22)
HSLhsl(104, 62%, 23%)
HSVhsv(104, 77%, 37%)
CMYKcmyk(55.8%, 0%, 76.8%, 62.7%)
CIE-LABlab(35.47, -32.13, 34.50)
CIE-LCHlch(35.47, 47.15, 132.96°)
OKLaboklab(43.3% -0.0886 0.0781)
OKLCHoklch(43.3% 0.118 138.6)
XYZxyz(5.1917, 8.7342, 2.1712)
Luminance0.0873 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F16 #4B165F
analogous
#4E5F16 #2A5F16 #165F27
triadic
#2A5F16 #162A5F #5F162A
tetradic
#2A5F16 #164E5F #4B165F #5F2716
square
#2A5F16 #164E5F #4B165F #5F2716
split-complementary
#2A5F16 #27165F #5F164E
monochromatic
#0B1906 #142D0A #2A5F16 #409122 #56C22D

Accessibility & contrast

On white

7.64
#2A5F16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A5F16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5F16
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F16#FFFFFF#000000##FFFFFF
##2A5F161.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625609
Deuteranopia (green-blind)
#5B521D
Tritanopia (blue-blind)
#255C51
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5f16;
/* rgb */ color: rgb(42, 95, 22);
/* oklch */ color: oklch(43.3% 0.118 138.6);
Tailwind
colors: {
  custom: {
    50: '#6a8d58',
    500: '#2a5f16',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f16;
$custom-light: #6a8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f16",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 22
  },
  "hsl": {
    "h": 103.562,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.433,
    "c": 0.1181,
    "h": 138.6
  },
  "luminance": 0.08735
}

Semantic roles & 50–950 ramp

primary
#2A5F16
secondary
#7D3B96
accent
#42E5B9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A5F16

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

Preview Lab → · Contrast checker → · Palette generator →

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