#2A5528#2A5528

#2A5528 is a dark, moderate green. Relative luminance 0.071; OKLCH L 40.6% C 0.087 H 142.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2A5528
RGBrgb(42, 85, 40)
HSLhsl(117, 36%, 25%)
HSVhsv(117, 53%, 33%)
CMYKcmyk(50.6%, 0%, 52.9%, 66.7%)
CIE-LABlab(32.13, -25.42, 21.62)
CIE-LCHlch(32.13, 33.37, 139.62°)
OKLaboklab(40.62% -0.0692 0.0523)
OKLCHoklch(40.62% 0.087 142.9)
XYZxyz(4.5861, 7.1421, 3.1440)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5528 #532855
analogous
#415528 #2A5528 #28553D
triadic
#2A5528 #282A55 #55282A
tetradic
#2A5528 #284155 #532855 #553D28
square
#2A5528 #284155 #532855 #553D28
split-complementary
#2A5528 #3D2855 #552841
monochromatic
#0A150A #152B14 #2A5528 #3F7F3C #53A84F

Accessibility & contrast

On white

8.65
#2A5528 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2A5528 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5528
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5528#FFFFFF#000000##FFFFFF
##2A55281.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574E24
Deuteranopia (green-blind)
#514A2B
Tritanopia (blue-blind)
#25534A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a5528;
/* rgb */ color: rgb(42, 85, 40);
/* oklch */ color: oklch(40.6% 0.087 142.9);
Tailwind
colors: {
  custom: {
    50: '#678563',
    500: '#2a5528',
    950: '#000000',
  },
}
SCSS
$custom: #2a5528;
$custom-light: #678563;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5528",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 40
  },
  "hsl": {
    "h": 117.333,
    "s": 36,
    "l": 24.51
  },
  "oklch": {
    "l": 0.40623,
    "c": 0.0868,
    "h": 142.9
  },
  "luminance": 0.07142
}

Semantic roles & 50–950 ramp

primary
#2A5528
secondary
#855188
accent
#5CCCC7
background
#F6F8F5
surface
#EBEFEA
border
#C6CAC6
text
#060B05
muted
#7A7C79

Preview Lab

Preview with #2A5528

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

Preview Lab → · Contrast checker → · Palette generator →

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