#2F7952#2F7952

#2F7952 is a mid, moderate green. Relative luminance 0.149; OKLCH L 51.9% C 0.097 H 157.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2F7952
RGBrgb(47, 121, 82)
HSLhsl(148, 44%, 33%)
HSVhsv(148, 61%, 47%)
CMYKcmyk(61.2%, 0%, 32.2%, 52.5%)
CIE-LABlab(45.48, -32.70, 14.72)
CIE-LCHlch(45.48, 35.86, 155.77°)
OKLaboklab(51.86% -0.0891 0.0373)
OKLCHoklch(51.86% 0.097 157.3)
XYZxyz(9.5318, 14.8874, 10.3522)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7952 #792F56
analogous
#31792F #2F7952 #2F7977
triadic
#2F7952 #522F79 #79522F
tetradic
#2F7952 #2F3179 #792F56 #79772F
square
#2F7952 #2F3179 #792F56 #79772F
split-complementary
#2F7952 #772F79 #792F31
monochromatic
#0D2116 #1E4D34 #2F7952 #40A570 #61C28F

Accessibility & contrast

On white

5.28
#2F7952 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2F7952 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7952
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7952#FFFFFF#000000##FFFFFF
##2F79521.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#787050
Deuteranopia (green-blind)
#6E6954
Tritanopia (blue-blind)
#12786F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7952;
/* rgb */ color: rgb(47, 121, 82);
/* oklch */ color: oklch(51.9% 0.097 157.3);
Tailwind
colors: {
  custom: {
    50: '#6fa082',
    500: '#2f7952',
    950: '#000000',
  },
}
SCSS
$custom: #2f7952;
$custom-light: #6fa082;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7952",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 82
  },
  "hsl": {
    "h": 148.378,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51861,
    "c": 0.09662,
    "h": 157.3
  },
  "luminance": 0.14888
}

Semantic roles & 50–950 ramp

primary
#2F7952
secondary
#A85B84
accent
#5497D4
background
#F7F9F8
surface
#EDF2EF
border
#C8CCCA
text
#080F0A
muted
#7B7E7C

Preview Lab

Preview with #2F7952

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

Preview Lab → · Contrast checker → · Palette generator →

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