#2A795F#2A795F

#2A795F is a mid, moderate teal. Relative luminance 0.150; OKLCH L 52.0% C 0.088 H 167.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2A795F
RGBrgb(42, 121, 95)
HSLhsl(160, 48%, 32%)
HSVhsv(160, 65%, 47%)
CMYKcmyk(65.3%, 0%, 21.5%, 52.5%)
CIE-LABlab(45.62, -30.71, 7.27)
CIE-LCHlch(45.62, 31.56, 166.69°)
OKLaboklab(52.03% -0.0855 0.0186)
OKLCHoklch(52.03% 0.088 167.7)
XYZxyz(9.8567, 14.9922, 13.1986)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A795F #792A44
analogous
#2A7938 #2A795F #2A6C79
triadic
#2A795F #5F2A79 #795F2A
tetradic
#2A795F #382A79 #792A44 #6C792A
square
#2A795F #382A79 #792A44 #6C792A
split-complementary
#2A795F #792A6C #79382A
monochromatic
#0A1E18 #1A4C3B #2A795F #3AA683 #58C5A1

Accessibility & contrast

On white

5.25
#2A795F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2A795F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A795F
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A795F#FFFFFF#000000##FFFFFF
##2A795F1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76715E
Deuteranopia (green-blind)
#6B6961
Tritanopia (blue-blind)
#007A72
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a795f;
/* rgb */ color: rgb(42, 121, 95);
/* oklch */ color: oklch(52.0% 0.088 167.7);
Tailwind
colors: {
  custom: {
    50: '#6da08c',
    500: '#2a795f',
    950: '#000000',
  },
}
SCSS
$custom: #2a795f;
$custom-light: #6da08c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a795f",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 95
  },
  "hsl": {
    "h": 160.253,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52034,
    "c": 0.08752,
    "h": 167.7
  },
  "luminance": 0.14993
}

Semantic roles & 50–950 ramp

primary
#2A795F
secondary
#AB5471
accent
#507DD8
background
#F6F9F8
surface
#ECF2F0
border
#C7CCCB
text
#080F0C
muted
#7B7E7D

Preview Lab

Preview with #2A795F

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

Preview Lab → · Contrast checker → · Palette generator →

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