#304012#304012

#304012 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.6% C 0.072 H 126.2°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#304012
RGBrgb(48, 64, 18)
HSLhsl(81, 56%, 16%)
HSVhsv(81, 72%, 25%)
CMYKcmyk(25%, 0%, 71.9%, 74.9%)
CIE-LABlab(24.76, -14.89, 25.24)
CIE-LCHlch(24.76, 29.31, 120.54°)
OKLaboklab(34.63% -0.0424 0.0579)
OKLCHoklch(34.63% 0.072 126.2)
XYZxyz(3.1615, 4.3388, 1.2431)
Luminance0.0434 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304012 #221240
analogous
#403912 #304012 #194012
triadic
#304012 #123040 #401230
tetradic
#304012 #124039 #221240 #401219
square
#304012 #124039 #221240 #401219
split-complementary
#304012 #121940 #391240
monochromatic
#121807 #121807 #304012 #54701F #78A02D

Accessibility & contrast

On white

11.24
#304012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#304012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304012
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304012#FFFFFF#000000##FFFFFF
##3040121.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B0C
Deuteranopia (green-blind)
#413B15
Tritanopia (blue-blind)
#323D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #304012;
/* rgb */ color: rgb(48, 64, 18);
/* oklch */ color: oklch(34.6% 0.072 126.2);
Tailwind
colors: {
  custom: {
    50: '#6a7452',
    500: '#304012',
    950: '#000000',
  },
}
SCSS
$custom: #304012;
$custom-light: #6a7452;
$custom-dark: #000000;
JSON
{
  "hex": "#304012",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 80.87,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.3463,
    "c": 0.07181,
    "h": 126.2
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#304012
secondary
#4D3579
accent
#48DF7D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #304012

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

Preview Lab → · Contrast checker → · Palette generator →

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