#308228#308228

#308228 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.7% C 0.149 H 141.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#308228
RGBrgb(48, 130, 40)
HSLhsl(115, 53%, 33%)
HSVhsv(115, 69%, 51%)
CMYKcmyk(63.1%, 0%, 69.2%, 49%)
CIE-LABlab(47.94, -42.87, 39.91)
CIE-LCHlch(47.94, 58.57, 137.05°)
OKLaboklab(53.7% -0.1169 0.0918)
OKLCHoklch(53.7% 0.149 141.9)
XYZxyz(9.5841, 16.7459, 4.7343)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308228 #7A2882
analogous
#5D8228 #308228 #28824D
triadic
#308228 #283082 #822830
tetradic
#308228 #285D82 #7A2882 #824D28
square
#308228 #285D82 #7A2882 #824D28
split-complementary
#308228 #4D2882 #82285D
monochromatic
#0D240B #1F531A #308228 #41B136 #63CC59

Accessibility & contrast

On white

4.83
#308228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#308228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #308228
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308228#FFFFFF#000000##FFFFFF
##3082281.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761C
Deuteranopia (green-blind)
#7B6F30
Tritanopia (blue-blind)
#227E70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #308228;
/* rgb */ color: rgb(48, 130, 40);
/* oklch */ color: oklch(53.7% 0.149 141.9);
Tailwind
colors: {
  custom: {
    50: '#73a767',
    500: '#308228',
    950: '#000000',
  },
}
SCSS
$custom: #308228;
$custom-light: #73a767;
$custom-dark: #000000;
JSON
{
  "hex": "#308228",
  "rgb": {
    "r": 48,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 114.667,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53696,
    "c": 0.14865,
    "h": 141.9
  },
  "luminance": 0.16747
}

Semantic roles & 50–950 ramp

primary
#308228
secondary
#A955B1
accent
#4BDCCF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #308228

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

Preview Lab → · Contrast checker → · Palette generator →

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