#314A12#314A12

#314A12 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.6% C 0.087 H 130.4°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#314A12
RGBrgb(49, 74, 18)
HSLhsl(87, 61%, 18%)
HSVhsv(87, 76%, 29%)
CMYKcmyk(33.8%, 0%, 75.7%, 71%)
CIE-LABlab(28.36, -19.89, 29.08)
CIE-LCHlch(28.36, 35.23, 124.37°)
OKLaboklab(37.57% -0.0562 0.066)
OKLCHoklch(37.57% 0.087 130.4)
XYZxyz(3.8246, 5.5941, 1.4504)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314A12 #2B124A
analogous
#4A4712 #314A12 #154A12
triadic
#314A12 #12314A #4A1231
tetradic
#314A12 #124A47 #2B124A #4A1215
square
#314A12 #124A47 #2B124A #4A1215
split-complementary
#314A12 #12154A #47124A
monochromatic
#101906 #101906 #314A12 #527B1E #72AC2A

Accessibility & contrast

On white

9.91
#314A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#314A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314A12
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314A12#FFFFFF#000000##FFFFFF
##314A121.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E440A
Deuteranopia (green-blind)
#4A4217
Tritanopia (blue-blind)
#32473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #314a12;
/* rgb */ color: rgb(49, 74, 18);
/* oklch */ color: oklch(37.6% 0.087 130.4);
Tailwind
colors: {
  custom: {
    50: '#6b7c53',
    500: '#314a12',
    950: '#000000',
  },
}
SCSS
$custom: #314a12;
$custom-light: #6b7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#314a12",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 86.786,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37572,
    "c": 0.0867,
    "h": 130.4
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#314A12
secondary
#583583
accent
#44E48B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070903
muted
#7A7B78

Preview Lab

Preview with #314A12

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

Preview Lab → · Contrast checker → · Palette generator →

#314A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva