#304112#304112

#304112 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.9% C 0.073 H 126.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#304112
RGBrgb(48, 65, 18)
HSLhsl(82, 57%, 16%)
HSVhsv(82, 72%, 25%)
CMYKcmyk(26.2%, 0%, 72.3%, 74.5%)
CIE-LABlab(25.11, -15.46, 25.63)
CIE-LCHlch(25.11, 29.93, 121.10°)
OKLaboklab(34.92% -0.044 0.0587)
OKLCHoklch(34.92% 0.073 126.8)
XYZxyz(3.2184, 4.4526, 1.2620)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304112 #231241
analogous
#413B12 #304112 #194112
triadic
#304112 #123041 #411230
tetradic
#304112 #12413B #231241 #411219
square
#304112 #12413B #231241 #411219
split-complementary
#304112 #121941 #3B1241
monochromatic
#121807 #121807 #304112 #53711F #77A12D

Accessibility & contrast

On white

11.11
#304112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#304112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304112
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304112#FFFFFF#000000##FFFFFF
##3041121.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C0C
Deuteranopia (green-blind)
#423B16
Tritanopia (blue-blind)
#323E37
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #304112;
/* rgb */ color: rgb(48, 65, 18);
/* oklch */ color: oklch(34.9% 0.073 126.8);
Tailwind
colors: {
  custom: {
    50: '#6a7552',
    500: '#304112',
    950: '#000000',
  },
}
SCSS
$custom: #304112;
$custom-light: #6a7552;
$custom-dark: #000000;
JSON
{
  "hex": "#304112",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 18
  },
  "hsl": {
    "h": 81.702,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.34916,
    "c": 0.07339,
    "h": 126.8
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#304112
secondary
#4E357A
accent
#48E07F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #304112

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

Preview Lab → · Contrast checker → · Palette generator →

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