#304312#304312

#304312 is a dark, moderate yellow-green. Relative luminance 0.047; OKLCH L 35.5% C 0.077 H 128.0°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#304312
RGBrgb(48, 67, 18)
HSLhsl(83, 58%, 17%)
HSVhsv(83, 73%, 26%)
CMYKcmyk(28.4%, 0%, 73.1%, 73.7%)
CIE-LABlab(25.82, -16.57, 26.38)
CIE-LCHlch(25.82, 31.16, 122.13°)
OKLaboklab(35.49% -0.0471 0.0603)
OKLCHoklch(35.49% 0.077 128)
XYZxyz(3.3353, 4.6863, 1.3010)
Luminance0.0469 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304312 #251243
analogous
#433E12 #304312 #184312
triadic
#304312 #123043 #431230
tetradic
#304312 #12433E #251243 #431218
square
#304312 #12433E #251243 #431218
split-complementary
#304312 #121843 #3E1243
monochromatic
#111806 #111806 #304312 #53731F #75A32C

Accessibility & contrast

On white

10.84
#304312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#304312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304312
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304312#FFFFFF#000000##FFFFFF
##3043121.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473E0C
Deuteranopia (green-blind)
#443D16
Tritanopia (blue-blind)
#324039
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #304312;
/* rgb */ color: rgb(48, 67, 18);
/* oklch */ color: oklch(35.5% 0.077 128.0);
Tailwind
colors: {
  custom: {
    50: '#6a7753',
    500: '#304312',
    950: '#000000',
  },
}
SCSS
$custom: #304312;
$custom-light: #6a7753;
$custom-dark: #000000;
JSON
{
  "hex": "#304312",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 18
  },
  "hsl": {
    "h": 83.265,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.35489,
    "c": 0.07653,
    "h": 128
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#304312
secondary
#50357C
accent
#47E183
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #304312

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

Preview Lab → · Contrast checker → · Palette generator →

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