#30842A#30842A

#30842A is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.3% C 0.150 H 142.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#30842A
RGBrgb(48, 132, 42)
HSLhsl(116, 52%, 34%)
HSVhsv(116, 68%, 52%)
CMYKcmyk(63.6%, 0%, 68.2%, 48.2%)
CIE-LABlab(48.63, -43.43, 39.78)
CIE-LCHlch(48.63, 58.90, 137.51°)
OKLaboklab(54.28% -0.1183 0.0918)
OKLCHoklch(54.28% 0.15 142.2)
XYZxyz(9.8876, 17.2971, 5.0077)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30842A #7E2A84
analogous
#5D842A #30842A #2A8451
triadic
#30842A #2A3084 #842A30
tetradic
#30842A #2A5D84 #7E2A84 #84512A
square
#30842A #2A5D84 #7E2A84 #84512A
split-complementary
#30842A #512A84 #842A5D
monochromatic
#0E270C #1F561B #30842A #41B239 #64CB5D

Accessibility & contrast

On white

4.71
#30842A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#30842A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #30842A
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30842A#FFFFFF#000000##FFFFFF
##30842A1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87781E
Deuteranopia (green-blind)
#7D7132
Tritanopia (blue-blind)
#218072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #30842a;
/* rgb */ color: rgb(48, 132, 42);
/* oklch */ color: oklch(54.3% 0.150 142.2);
Tailwind
colors: {
  custom: {
    50: '#73a968',
    500: '#30842a',
    950: '#000000',
  },
}
SCSS
$custom: #30842a;
$custom-light: #73a968;
$custom-dark: #000000;
JSON
{
  "hex": "#30842a",
  "rgb": {
    "r": 48,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 116,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54275,
    "c": 0.14973,
    "h": 142.2
  },
  "luminance": 0.17298
}

Semantic roles & 50–950 ramp

primary
#30842A
secondary
#AB59B1
accent
#4DDBD2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #30842A

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

Preview Lab → · Contrast checker → · Palette generator →

#30842A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva