#257F31#257F31

#257F31 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.142 H 145.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#257F31
RGBrgb(37, 127, 49)
HSLhsl(128, 55%, 32%)
HSVhsv(128, 71%, 50%)
CMYKcmyk(70.9%, 0%, 61.4%, 50.2%)
CIE-LABlab(46.70, -43.16, 34.25)
CIE-LCHlch(46.70, 55.10, 141.57°)
OKLaboklab(52.62% -0.1166 0.0808)
OKLCHoklch(52.62% 0.142 145.3)
XYZxyz(8.9061, 15.7929, 5.4841)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#257F31 #7F2573
analogous
#467F25 #257F31 #257F5E
triadic
#257F31 #31257F #7F3125
tetradic
#257F31 #25467F #7F2573 #7F5E25
square
#257F31 #25467F #7F2573 #7F5E25
split-complementary
#257F31 #5E257F #7F2546
monochromatic
#09200C #17501F #257F31 #33AE43 #52CD62

Accessibility & contrast

On white

5.05
#257F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#257F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #257F31
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##257F31#FFFFFF#000000##FFFFFF
##257F311.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817329
Deuteranopia (green-blind)
#766C37
Tritanopia (blue-blind)
#057C6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #257f31;
/* rgb */ color: rgb(37, 127, 49);
/* oklch */ color: oklch(52.6% 0.142 145.3);
Tailwind
colors: {
  custom: {
    50: '#6da56c',
    500: '#257f31',
    950: '#000000',
  },
}
SCSS
$custom: #257f31;
$custom-light: #6da56c;
$custom-dark: #000000;
JSON
{
  "hex": "#257f31",
  "rgb": {
    "r": 37,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 128,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52616,
    "c": 0.14187,
    "h": 145.3
  },
  "luminance": 0.15794
}

Semantic roles & 50–950 ramp

primary
#257F31
secondary
#B14FA4
accent
#4ACADE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #257F31

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

Preview Lab → · Contrast checker → · Palette generator →

#257F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva