#304207#304207

#304207 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.1% C 0.083 H 125.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#304207
RGBrgb(48, 66, 7)
HSLhsl(78, 81%, 14%)
HSVhsv(78, 89%, 26%)
CMYKcmyk(27.3%, 0%, 89.4%, 74.1%)
CIE-LABlab(25.38, -16.83, 30.77)
CIE-LCHlch(25.38, 35.07, 118.67°)
OKLaboklab(35.1% -0.0489 0.0675)
OKLCHoklch(35.1% 0.083 125.9)
XYZxyz(3.2055, 4.5401, 0.9084)
Luminance0.0454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304207 #190742
analogous
#423707 #304207 #134207
triadic
#304207 #073042 #420730
tetradic
#304207 #074237 #190742 #420713
square
#304207 #074237 #190742 #420713
split-complementary
#304207 #071342 #370742
monochromatic
#141C03 #141C03 #304207 #58790D #80B113

Accessibility & contrast

On white

11.01
#304207 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#304207 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304207
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304207#FFFFFF#000000##FFFFFF
##3042071.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D00
Deuteranopia (green-blind)
#443C0D
Tritanopia (blue-blind)
#333E37
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #304207;
/* rgb */ color: rgb(48, 66, 7);
/* oklch */ color: oklch(35.1% 0.083 125.9);
Tailwind
colors: {
  custom: {
    50: '#6b764c',
    500: '#304207',
    950: '#000000',
  },
}
SCSS
$custom: #304207;
$custom-light: #6b764c;
$custom-dark: #000000;
JSON
{
  "hex": "#304207",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 7
  },
  "hsl": {
    "h": 78.305,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.35105,
    "c": 0.08335,
    "h": 125.9
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#304207
secondary
#402481
accent
#31F76D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304207

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

Preview Lab → · Contrast checker → · Palette generator →

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