#42812F#42812F

#42812F is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.2% C 0.133 H 139.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#42812F
RGBrgb(66, 129, 47)
HSLhsl(106, 47%, 35%)
HSVhsv(106, 64%, 51%)
CMYKcmyk(48.8%, 0%, 63.6%, 49.4%)
CIE-LABlab(48.34, -36.58, 37.34)
CIE-LCHlch(48.34, 52.28, 134.41°)
OKLaboklab(54.24% -0.1005 0.087)
OKLCHoklch(54.24% 0.133 139.1)
XYZxyz(10.6097, 17.0633, 5.4232)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42812F #6E2F81
analogous
#6B812F #42812F #2F8145
triadic
#42812F #2F4281 #812F42
tetradic
#42812F #2F6B81 #6E2F81 #81452F
square
#42812F #2F6B81 #6E2F81 #81452F
split-complementary
#42812F #452F81 #812F6B
monochromatic
#14270E #2B541F #42812F #59AE3F #7BC664

Accessibility & contrast

On white

4.76
#42812F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#42812F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42812F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42812F#FFFFFF#000000##FFFFFF
##42812F1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857626
Deuteranopia (green-blind)
#7C7136
Tritanopia (blue-blind)
#3D7D70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #42812f;
/* rgb */ color: rgb(66, 129, 47);
/* oklch */ color: oklch(54.2% 0.133 139.1);
Tailwind
colors: {
  custom: {
    50: '#7ca66b',
    500: '#42812f',
    950: '#000000',
  },
}
SCSS
$custom: #42812f;
$custom-light: #7ca66b;
$custom-dark: #000000;
JSON
{
  "hex": "#42812f",
  "rgb": {
    "r": 66,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 106.098,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54235,
    "c": 0.13297,
    "h": 139.1
  },
  "luminance": 0.17064
}

Semantic roles & 50–950 ramp

primary
#42812F
secondary
#9B5EAD
accent
#52D6B7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #42812F

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

Preview Lab → · Contrast checker → · Palette generator →

#42812F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva