#306A0F#306A0F

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

Color values

HEX#306A0F
RGBrgb(48, 106, 15)
HSLhsl(98, 75%, 24%)
HSVhsv(98, 86%, 42%)
CMYKcmyk(54.7%, 0%, 85.8%, 58.4%)
CIE-LABlab(39.53, -35.32, 41.03)
CIE-LCHlch(39.53, 54.14, 130.72°)
OKLaboklab(46.7% -0.0981 0.0905)
OKLCHoklch(46.7% 0.133 137.3)
XYZxyz(6.4590, 10.9705, 2.2290)
Luminance0.1097 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306A0F #490F6A
analogous
#5D6A0F #306A0F #0F6A1B
triadic
#306A0F #0F306A #6A0F30
tetradic
#306A0F #0F5D6A #490F6A #6A1B0F
square
#306A0F #0F5D6A #490F6A #6A1B0F
split-complementary
#306A0F #1B0F6A #6A0F5D
monochromatic
#0C1B04 #183407 #306A0F #48A017 #61D51E

Accessibility & contrast

On white

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

On black

3.19
#306A0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##306A0F#FFFFFF#000000##FFFFFF
##306A0F1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #306a0f;
/* rgb */ color: rgb(48, 106, 15);
/* oklch */ color: oklch(46.7% 0.133 137.3);
Tailwind
colors: {
  custom: {
    50: '#6f9557',
    500: '#306a0f',
    950: '#000000',
  },
}
SCSS
$custom: #306a0f;
$custom-light: #6f9557;
$custom-dark: #000000;
JSON
{
  "hex": "#306a0f",
  "rgb": {
    "r": 48,
    "g": 106,
    "b": 15
  },
  "hsl": {
    "h": 98.242,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46702,
    "c": 0.13347,
    "h": 137.3
  },
  "luminance": 0.10971
}

Semantic roles & 50–950 ramp

primary
#306A0F
secondary
#7A32A2
accent
#36F2AE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #306A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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