#306A12#306A12

#306A12 is a mid, vivid yellow-green. Relative luminance 0.110; OKLCH L 46.7% C 0.132 H 137.6°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#306A12
RGBrgb(48, 106, 18)
HSLhsl(100, 71%, 24%)
HSVhsv(100, 83%, 42%)
CMYKcmyk(54.7%, 0%, 83%, 58.4%)
CIE-LABlab(39.55, -35.14, 40.09)
CIE-LCHlch(39.55, 53.31, 131.24°)
OKLaboklab(46.72% -0.0974 0.089)
OKLCHoklch(46.72% 0.132 137.6)
XYZxyz(6.4819, 10.9796, 2.3499)
Luminance0.1098 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306A12 #4C126A
analogous
#5C6A12 #306A12 #126A20
triadic
#306A12 #12306A #6A1230
tetradic
#306A12 #125C6A #4C126A #6A2012
square
#306A12 #125C6A #4C126A #6A2012
split-complementary
#306A12 #20126A #6A125C
monochromatic
#0C1A04 #183609 #306A12 #489E1B #5FD324

Accessibility & contrast

On white

6.57
#306A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#306A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306A12
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306A12#FFFFFF#000000##FFFFFF
##306A121.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#665B1C
Tritanopia (blue-blind)
#2C665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #306a12;
/* rgb */ color: rgb(48, 106, 18);
/* oklch */ color: oklch(46.7% 0.132 137.6);
Tailwind
colors: {
  custom: {
    50: '#6f9558',
    500: '#306a12',
    950: '#000000',
  },
}
SCSS
$custom: #306a12;
$custom-light: #6f9558;
$custom-dark: #000000;
JSON
{
  "hex": "#306a12",
  "rgb": {
    "r": 48,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 99.545,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.4672,
    "c": 0.13197,
    "h": 137.6
  },
  "luminance": 0.1098
}

Semantic roles & 50–950 ramp

primary
#306A12
secondary
#7D36A2
accent
#3AEEB0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306A12

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

Preview Lab → · Contrast checker → · Palette generator →

#306A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva