#2A795C#2A795C

#2A795C is a mid, moderate teal. Relative luminance 0.149; OKLCH L 51.9% C 0.090 H 165.3°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2A795C
RGBrgb(42, 121, 92)
HSLhsl(158, 48%, 32%)
HSVhsv(158, 65%, 47%)
CMYKcmyk(65.3%, 0%, 24%, 52.5%)
CIE-LABlab(45.55, -31.46, 8.93)
CIE-LCHlch(45.55, 32.70, 164.15°)
OKLaboklab(51.95% -0.087 0.0229)
OKLCHoklch(51.95% 0.09 165.3)
XYZxyz(9.7230, 14.9387, 12.4942)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A795C #792A47
analogous
#2A7935 #2A795C #2A6F79
triadic
#2A795C #5C2A79 #795C2A
tetradic
#2A795C #352A79 #792A47 #6F792A
square
#2A795C #352A79 #792A47 #6F792A
split-complementary
#2A795C #792A6F #79352A
monochromatic
#0A1E17 #1A4C39 #2A795C #3AA67F #58C59D

Accessibility & contrast

On white

5.27
#2A795C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2A795C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A795C
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A795C#FFFFFF#000000##FFFFFF
##2A795C1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77715A
Deuteranopia (green-blind)
#6C695E
Tritanopia (blue-blind)
#007971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a795c;
/* rgb */ color: rgb(42, 121, 92);
/* oklch */ color: oklch(51.9% 0.090 165.3);
Tailwind
colors: {
  custom: {
    50: '#6da08a',
    500: '#2a795c',
    950: '#000000',
  },
}
SCSS
$custom: #2a795c;
$custom-light: #6da08a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a795c",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 92
  },
  "hsl": {
    "h": 157.975,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5195,
    "c": 0.09,
    "h": 165.3
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#2A795C
secondary
#AB5474
accent
#5082D8
background
#F6F9F8
surface
#ECF2F0
border
#C7CCCB
text
#080F0B
muted
#7B7E7C

Preview Lab

Preview with #2A795C

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

Preview Lab → · Contrast checker → · Palette generator →

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