#313C12#313C12

#313C12 is a dark, moderate yellow-green. Relative luminance 0.039; OKLCH L 33.6% C 0.065 H 122.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#313C12
RGBrgb(49, 60, 18)
HSLhsl(76, 54%, 15%)
HSVhsv(76, 70%, 24%)
CMYKcmyk(18.3%, 0%, 70%, 76.5%)
CIE-LABlab(23.43, -12.10, 23.82)
CIE-LCHlch(23.43, 26.72, 116.93°)
OKLaboklab(33.58% -0.0348 0.0549)
OKLCHoklch(33.58% 0.065 122.4)
XYZxyz(2.9917, 3.9284, 1.1728)
Luminance0.0393 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C12 #1D123C
analogous
#3C3212 #313C12 #1C3C12
triadic
#313C12 #12313C #3C1231
tetradic
#313C12 #123C32 #1D123C #3C121C
square
#313C12 #123C32 #1D123C #3C121C
split-complementary
#313C12 #121C3C #32123C
monochromatic
#131807 #131807 #313C12 #576B20 #7E9A2E

Accessibility & contrast

On white

11.76
#313C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#313C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C12
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C12#FFFFFF#000000##FFFFFF
##313C121.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40380D
Deuteranopia (green-blind)
#3E3815
Tritanopia (blue-blind)
#343933
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313c12;
/* rgb */ color: rgb(49, 60, 18);
/* oklch */ color: oklch(33.6% 0.065 122.4);
Tailwind
colors: {
  custom: {
    50: '#6a7152',
    500: '#313c12',
    950: '#000000',
  },
}
SCSS
$custom: #313c12;
$custom-light: #6a7152;
$custom-dark: #000000;
JSON
{
  "hex": "#313c12",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 18
  },
  "hsl": {
    "h": 75.714,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33578,
    "c": 0.06497,
    "h": 122.4
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#313C12
secondary
#463575
accent
#4BDD71
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #313C12

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

Preview Lab → · Contrast checker → · Palette generator →

#313C12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva