#2A795B#2A795B

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

Color values

HEX#2A795B
RGBrgb(42, 121, 91)
HSLhsl(157, 48%, 32%)
HSVhsv(157, 65%, 47%)
CMYKcmyk(65.3%, 0%, 24.8%, 52.5%)
CIE-LABlab(45.53, -31.70, 9.49)
CIE-LCHlch(45.53, 33.09, 163.34°)
OKLaboklab(51.92% -0.0876 0.0243)
OKLCHoklch(51.92% 0.091 164.5)
XYZxyz(9.6796, 14.9213, 12.2655)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A795B #792A48
analogous
#2A7934 #2A795B #2A7079
triadic
#2A795B #5B2A79 #795B2A
tetradic
#2A795B #342A79 #792A48 #70792A
square
#2A795B #342A79 #792A48 #70792A
split-complementary
#2A795B #792A70 #79342A
monochromatic
#0A1E17 #1A4C39 #2A795B #3AA67D #58C59C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A795B#FFFFFF#000000##FFFFFF
##2A795B1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#777059
Deuteranopia (green-blind)
#6C695D
Tritanopia (blue-blind)
#007971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a795b;
/* rgb */ color: rgb(42, 121, 91);
/* oklch */ color: oklch(51.9% 0.091 164.5);
Tailwind
colors: {
  custom: {
    50: '#6da089',
    500: '#2a795b',
    950: '#000000',
  },
}
SCSS
$custom: #2a795b;
$custom-light: #6da089;
$custom-dark: #000000;
JSON
{
  "hex": "#2a795b",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 91
  },
  "hsl": {
    "h": 157.215,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51922,
    "c": 0.09086,
    "h": 164.5
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#2A795B
secondary
#AB5475
accent
#5084D8
background
#F6F9F8
surface
#ECF2F0
border
#C7CCCB
text
#080F0B
muted
#7B7E7C

Preview Lab

Preview with #2A795B

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

Preview Lab → · Contrast checker → · Palette generator →

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