#304106#304106

#304106 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.083 H 125.2°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#304106
RGBrgb(48, 65, 6)
HSLhsl(77, 83%, 14%)
HSVhsv(77, 91%, 25%)
CMYKcmyk(26.2%, 0%, 90.8%, 74.5%)
CIE-LABlab(25.02, -16.34, 30.83)
CIE-LCHlch(25.02, 34.90, 117.92°)
OKLaboklab(34.81% -0.0476 0.0675)
OKLCHoklch(34.81% 0.083 125.2)
XYZxyz(3.1421, 4.4221, 0.8603)
Luminance0.0442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304106 #170641
analogous
#413506 #304106 #134106
triadic
#304106 #063041 #410630
tetradic
#304106 #064135 #170641 #410613
square
#304106 #064135 #170641 #410613
split-complementary
#304106 #061341 #350641
monochromatic
#151C03 #151C03 #304106 #59790B #83B110

Accessibility & contrast

On white

11.14
#304106 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#304106 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304106
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304106#FFFFFF#000000##FFFFFF
##3041061.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#433B0C
Tritanopia (blue-blind)
#333D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #304106;
/* rgb */ color: rgb(48, 65, 6);
/* oklch */ color: oklch(34.8% 0.083 125.2);
Tailwind
colors: {
  custom: {
    50: '#6b754c',
    500: '#304106',
    950: '#000000',
  },
}
SCSS
$custom: #304106;
$custom-light: #6b754c;
$custom-dark: #000000;
JSON
{
  "hex": "#304106",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 6
  },
  "hsl": {
    "h": 77.288,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.08262,
    "h": 125.2
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#304106
secondary
#3D2281
accent
#2EF969
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304106

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

Preview Lab → · Contrast checker → · Palette generator →

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