#2A542E#2A542E

#2A542E is a dark, moderate green. Relative luminance 0.070; OKLCH L 40.4% C 0.078 H 146.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2A542E
RGBrgb(42, 84, 46)
HSLhsl(126, 33%, 25%)
HSVhsv(126, 50%, 33%)
CMYKcmyk(50%, 0%, 45.2%, 67.1%)
CIE-LABlab(31.87, -23.91, 17.77)
CIE-LCHlch(31.87, 29.79, 143.37°)
OKLaboklab(40.45% -0.065 0.0439)
OKLCHoklch(40.45% 0.078 146)
XYZxyz(4.6181, 7.0298, 3.6978)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A542E #542A50
analogous
#3B542A #2A542E #2A5443
triadic
#2A542E #2E2A54 #542E2A
tetradic
#2A542E #2A3B54 #542A50 #54432A
square
#2A542E #2A3B54 #542A50 #54432A
split-complementary
#2A542E #432A54 #542A3B
monochromatic
#0A140B #162B18 #2A542E #3E7D44 #53A65B

Accessibility & contrast

On white

8.73
#2A542E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A542E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A542E
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A542E#FFFFFF#000000##FFFFFF
##2A542E1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554D2B
Deuteranopia (green-blind)
#4F4930
Tritanopia (blue-blind)
#24524B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a542e;
/* rgb */ color: rgb(42, 84, 46);
/* oklch */ color: oklch(40.4% 0.078 146.0);
Tailwind
colors: {
  custom: {
    50: '#678467',
    500: '#2a542e',
    950: '#000000',
  },
}
SCSS
$custom: #2a542e;
$custom-light: #678467;
$custom-dark: #000000;
JSON
{
  "hex": "#2a542e",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 46
  },
  "hsl": {
    "h": 125.714,
    "s": 33.333,
    "l": 24.706
  },
  "oklch": {
    "l": 0.40448,
    "c": 0.0784,
    "h": 146
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#2A542E
secondary
#865381
accent
#5EBFC9
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060B06
muted
#7A7C7A

Preview Lab

Preview with #2A542E

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

Preview Lab → · Contrast checker → · Palette generator →

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