#2A7852#2A7852

#2A7852 is a mid, moderate teal. Relative luminance 0.145; OKLCH L 51.4% C 0.098 H 158.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2A7852
RGBrgb(42, 120, 82)
HSLhsl(151, 48%, 32%)
HSVhsv(151, 65%, 47%)
CMYKcmyk(65%, 0%, 31.7%, 52.9%)
CIE-LABlab(44.99, -33.36, 14.02)
CIE-LCHlch(44.99, 36.19, 157.21°)
OKLaboklab(51.42% -0.091 0.0356)
OKLCHoklch(51.42% 0.098 158.7)
XYZxyz(9.1935, 14.5334, 10.3017)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7852 #782A50
analogous
#2A782B #2A7852 #2A7778
triadic
#2A7852 #522A78 #78522A
tetradic
#2A7852 #2B2A78 #782A50 #77782A
square
#2A7852 #2B2A78 #782A50 #77782A
split-complementary
#2A7852 #782A77 #782B2A
monochromatic
#0A1D14 #1A4B33 #2A7852 #3AA571 #58C590

Accessibility & contrast

On white

5.38
#2A7852 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2A7852 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7852
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7852#FFFFFF#000000##FFFFFF
##2A78521.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776F50
Deuteranopia (green-blind)
#6C6754
Tritanopia (blue-blind)
#00776E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7852;
/* rgb */ color: rgb(42, 120, 82);
/* oklch */ color: oklch(51.4% 0.098 158.7);
Tailwind
colors: {
  custom: {
    50: '#6d9f82',
    500: '#2a7852',
    950: '#000000',
  },
}
SCSS
$custom: #2a7852;
$custom-light: #6d9f82;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7852",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 82
  },
  "hsl": {
    "h": 150.769,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51415,
    "c": 0.09769,
    "h": 158.7
  },
  "luminance": 0.14534
}

Semantic roles & 50–950 ramp

primary
#2A7852
secondary
#AA547E
accent
#5092D8
background
#F6F9F8
surface
#ECF2EF
border
#C7CCCA
text
#070F0A
muted
#7A7E7C

Preview Lab

Preview with #2A7852

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

Preview Lab → · Contrast checker → · Palette generator →

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