#2A8523#2A8523

#2A8523 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.158 H 142.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#2A8523
RGBrgb(42, 133, 35)
HSLhsl(116, 58%, 33%)
HSVhsv(116, 74%, 52%)
CMYKcmyk(68.4%, 0%, 73.7%, 47.8%)
CIE-LABlab(48.74, -45.86, 42.80)
CIE-LCHlch(48.74, 62.73, 136.97°)
OKLaboklab(54.3% -0.1249 0.0973)
OKLCHoklch(54.3% 0.158 142.1)
XYZxyz(9.6452, 17.3877, 4.4376)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8523 #7E2385
analogous
#5B8523 #2A8523 #23854D
triadic
#2A8523 #232A85 #85232A
tetradic
#2A8523 #235B85 #7E2385 #854D23
square
#2A8523 #235B85 #7E2385 #854D23
split-complementary
#2A8523 #4D2385 #85235B
monochromatic
#0B2409 #1B5516 #2A8523 #39B530 #5AD151

Accessibility & contrast

On white

4.69
#2A8523 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#2A8523 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8523
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8523#FFFFFF#000000##FFFFFF
##2A85231.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887813
Deuteranopia (green-blind)
#7D712D
Tritanopia (blue-blind)
#168172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8523;
/* rgb */ color: rgb(42, 133, 35);
/* oklch */ color: oklch(54.3% 0.158 142.1);
Tailwind
colors: {
  custom: {
    50: '#71a964',
    500: '#2a8523',
    950: '#000000',
  },
}
SCSS
$custom: #2a8523;
$custom-light: #71a964;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8523",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 35
  },
  "hsl": {
    "h": 115.714,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54302,
    "c": 0.15831,
    "h": 142.1
  },
  "luminance": 0.17389
}

Semantic roles & 50–950 ramp

primary
#2A8523
secondary
#AE4FB5
accent
#46E2D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8523

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

Preview Lab → · Contrast checker → · Palette generator →

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