#304007#304007

#304007 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.5% C 0.080 H 124.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#304007
RGBrgb(48, 64, 7)
HSLhsl(77, 80%, 14%)
HSVhsv(77, 89%, 25%)
CMYKcmyk(25%, 0%, 89.1%, 74.9%)
CIE-LABlab(24.67, -15.72, 30.09)
CIE-LCHlch(24.67, 33.95, 117.58°)
OKLaboklab(34.53% -0.0459 0.0662)
OKLCHoklch(34.53% 0.08 124.7)
XYZxyz(3.0907, 4.3105, 0.8701)
Luminance0.0431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304007 #170740
analogous
#403407 #304007 #144007
triadic
#304007 #073040 #400730
tetradic
#304007 #074034 #170740 #400714
square
#304007 #074034 #170740 #400714
split-complementary
#304007 #071440 #340740
monochromatic
#151C03 #151C03 #304007 #59770D #83AE13

Accessibility & contrast

On white

11.28
#304007 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#304007 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304007
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304007#FFFFFF#000000##FFFFFF
##3040071.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#423A0D
Tritanopia (blue-blind)
#333C35
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #304007;
/* rgb */ color: rgb(48, 64, 7);
/* oklch */ color: oklch(34.5% 0.080 124.7);
Tailwind
colors: {
  custom: {
    50: '#6b744c',
    500: '#304007',
    950: '#000000',
  },
}
SCSS
$custom: #304007;
$custom-light: #6b744c;
$custom-dark: #000000;
JSON
{
  "hex": "#304007",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 7
  },
  "hsl": {
    "h": 76.842,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.3453,
    "c": 0.08049,
    "h": 124.7
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#304007
secondary
#3D247F
accent
#31F769
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304007

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

Preview Lab → · Contrast checker → · Palette generator →

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