#314812#314812

#314812 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 37.0% C 0.084 H 129.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#314812
RGBrgb(49, 72, 18)
HSLhsl(86, 60%, 18%)
HSVhsv(86, 75%, 28%)
CMYKcmyk(31.9%, 0%, 75%, 71.8%)
CIE-LABlab(27.66, -18.83, 28.35)
CIE-LCHlch(27.66, 34.03, 123.60°)
OKLaboklab(37% -0.0533 0.0644)
OKLCHoklch(37% 0.084 129.6)
XYZxyz(3.6931, 5.3313, 1.4066)
Luminance0.0533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314812 #291248
analogous
#484412 #314812 #164812
triadic
#314812 #123148 #481231
tetradic
#314812 #124844 #291248 #481216
square
#314812 #124844 #291248 #481216
split-complementary
#314812 #121648 #441248
monochromatic
#111806 #111806 #314812 #52791E #74AA2A

Accessibility & contrast

On white

10.16
#314812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#314812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314812
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314812#FFFFFF#000000##FFFFFF
##3148121.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C420A
Deuteranopia (green-blind)
#484116
Tritanopia (blue-blind)
#33453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #314812;
/* rgb */ color: rgb(49, 72, 18);
/* oklch */ color: oklch(37.0% 0.084 129.6);
Tailwind
colors: {
  custom: {
    50: '#6b7b53',
    500: '#314812',
    950: '#000000',
  },
}
SCSS
$custom: #314812;
$custom-light: #6b7b53;
$custom-dark: #000000;
JSON
{
  "hex": "#314812",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 85.556,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36998,
    "c": 0.08365,
    "h": 129.6
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#314812
secondary
#553581
accent
#45E388
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #314812

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

Preview Lab → · Contrast checker → · Palette generator →

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