#304707#304707

#304707 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.5% C 0.090 H 128.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#304707
RGBrgb(48, 71, 7)
HSLhsl(82, 82%, 15%)
HSVhsv(82, 90%, 28%)
CMYKcmyk(32.4%, 0%, 90.1%, 72.2%)
CIE-LABlab(27.16, -19.51, 32.39)
CIE-LCHlch(27.16, 37.81, 121.07°)
OKLaboklab(36.55% -0.0561 0.0709)
OKLCHoklch(36.55% 0.09 128.4)
XYZxyz(3.5105, 5.1501, 1.0101)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304707 #1E0747
analogous
#473E07 #304707 #104707
triadic
#304707 #073047 #470730
tetradic
#304707 #07473E #1E0747 #470710
square
#304707 #07473E #1E0747 #470710
split-complementary
#304707 #071047 #3E0747
monochromatic
#131C03 #131C03 #304707 #567F0C #7BB612

Accessibility & contrast

On white

10.34
#304707 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#304707 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304707
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304707#FFFFFF#000000##FFFFFF
##3047071.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4100
Deuteranopia (green-blind)
#48400E
Tritanopia (blue-blind)
#32433B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #304707;
/* rgb */ color: rgb(48, 71, 7);
/* oklch */ color: oklch(36.5% 0.090 128.4);
Tailwind
colors: {
  custom: {
    50: '#6b7a4d',
    500: '#304707',
    950: '#000000',
  },
}
SCSS
$custom: #304707;
$custom-light: #6b7a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#304707",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 7
  },
  "hsl": {
    "h": 81.563,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.36548,
    "c": 0.09044,
    "h": 128.4
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#304707
secondary
#472486
accent
#2FF878
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304707

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

Preview Lab → · Contrast checker → · Palette generator →

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