#317238#317238

#317238 is a mid, moderate green. Relative luminance 0.130; OKLCH L 49.5% C 0.112 H 145.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#317238
RGBrgb(49, 114, 56)
HSLhsl(126, 40%, 32%)
HSVhsv(126, 57%, 45%)
CMYKcmyk(57%, 0%, 50.9%, 55.3%)
CIE-LABlab(42.72, -34.01, 25.89)
CIE-LCHlch(42.72, 42.75, 142.72°)
OKLaboklab(49.47% -0.0922 0.0628)
OKLCHoklch(49.47% 0.112 145.7)
XYZxyz(7.9973, 12.9724, 5.8231)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317238 #72316B
analogous
#4B7231 #317238 #317259
triadic
#317238 #383172 #723831
tetradic
#317238 #314B72 #72316B #725931
square
#317238 #314B72 #72316B #725931
split-complementary
#317238 #593172 #72314B
monochromatic
#0C1C0E #1F4723 #317238 #439D4D #62BB6C

Accessibility & contrast

On white

5.84
#317238 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#317238 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317238
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317238#FFFFFF#000000##FFFFFF
##3172381.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746833
Deuteranopia (green-blind)
#6B633C
Tritanopia (blue-blind)
#256F64
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #317238;
/* rgb */ color: rgb(49, 114, 56);
/* oklch */ color: oklch(49.5% 0.112 145.7);
Tailwind
colors: {
  custom: {
    50: '#6f9b70',
    500: '#317238',
    950: '#000000',
  },
}
SCSS
$custom: #317238;
$custom-light: #6f9b70;
$custom-dark: #000000;
JSON
{
  "hex": "#317238",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 56
  },
  "hsl": {
    "h": 126.462,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.49467,
    "c": 0.11159,
    "h": 145.7
  },
  "luminance": 0.12973
}

Semantic roles & 50–950 ramp

primary
#317238
secondary
#A35C9B
accent
#58C3D0
background
#F7F9F6
surface
#EDF2EC
border
#C8CCC7
text
#080E07
muted
#7B7E7A

Preview Lab

Preview with #317238

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

Preview Lab → · Contrast checker → · Palette generator →

#317238 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva