#307818#307818

#307818 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.146 H 139.4°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#307818
RGBrgb(48, 120, 24)
HSLhsl(105, 67%, 28%)
HSVhsv(105, 80%, 47%)
CMYKcmyk(60%, 0%, 80%, 52.9%)
CIE-LABlab(44.41, -40.37, 42.68)
CIE-LCHlch(44.41, 58.75, 133.41°)
OKLaboklab(50.75% -0.1111 0.0954)
OKLCHoklch(50.75% 0.146 139.4)
XYZxyz(8.0999, 14.1266, 3.1638)
Luminance0.1413 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#307818 #601878
analogous
#607818 #307818 #187830
triadic
#307818 #183078 #781830
tetradic
#307818 #186078 #601878 #783018
square
#307818 #186078 #601878 #783018
split-complementary
#307818 #301878 #781860
monochromatic
#0A1A05 #1C450E #307818 #44AB22 #5DD634

Accessibility & contrast

On white

5.49
#307818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#307818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #307818
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##307818#FFFFFF#000000##FFFFFF
##3078181.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D02
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#287466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #307818;
/* rgb */ color: rgb(48, 120, 24);
/* oklch */ color: oklch(50.7% 0.146 139.4);
Tailwind
colors: {
  custom: {
    50: '#72a05d',
    500: '#307818',
    950: '#000000',
  },
}
SCSS
$custom: #307818;
$custom-light: #72a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#307818",
  "rgb": {
    "r": 48,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 105,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50747,
    "c": 0.14643,
    "h": 139.4
  },
  "luminance": 0.14127
}

Semantic roles & 50–950 ramp

primary
#307818
secondary
#913FAD
accent
#3EEABF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #307818

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

Preview Lab → · Contrast checker → · Palette generator →

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