#2A7815#2A7815

#2A7815 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.151 H 140.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#2A7815
RGBrgb(42, 120, 21)
HSLhsl(107, 70%, 28%)
HSVhsv(107, 83%, 47%)
CMYKcmyk(65%, 0%, 82.5%, 52.9%)
CIE-LABlab(44.20, -42.15, 43.42)
CIE-LCHlch(44.20, 60.51, 134.15°)
OKLaboklab(50.51% -0.1157 0.0965)
OKLCHoklch(50.51% 0.151 140.2)
XYZxyz(7.8063, 13.9786, 2.9961)
Luminance0.1398 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7815 #631578
analogous
#5B7815 #2A7815 #157832
triadic
#2A7815 #152A78 #78152A
tetradic
#2A7815 #155B78 #631578 #783215
square
#2A7815 #155B78 #631578 #783215
split-complementary
#2A7815 #321578 #78155B
monochromatic
#091A05 #18440C #2A7815 #3CAC1E #52DA2D

Accessibility & contrast

On white

5.53
#2A7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#2A7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7815
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7815#FFFFFF#000000##FFFFFF
##2A78151.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#1E7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a7815;
/* rgb */ color: rgb(42, 120, 21);
/* oklch */ color: oklch(50.5% 0.151 140.2);
Tailwind
colors: {
  custom: {
    50: '#6fa05c',
    500: '#2a7815',
    950: '#000000',
  },
}
SCSS
$custom: #2a7815;
$custom-light: #6fa05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7815",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 107.273,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.50512,
    "c": 0.15066,
    "h": 140.2
  },
  "luminance": 0.13979
}

Semantic roles & 50–950 ramp

primary
#2A7815
secondary
#953BAE
accent
#3BEDC7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2A7815

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

Preview Lab → · Contrast checker → · Palette generator →

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