#313D07#313D07

#313D07 is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.8% C 0.076 H 121.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#313D07
RGBrgb(49, 61, 7)
HSLhsl(73, 79%, 13%)
HSVhsv(73, 89%, 24%)
CMYKcmyk(19.7%, 0%, 88.5%, 76.1%)
CIE-LABlab(23.69, -13.53, 29.15)
CIE-LCHlch(23.69, 32.14, 114.89°)
OKLaboklab(33.76% -0.0399 0.0643)
OKLCHoklch(33.76% 0.076 121.9)
XYZxyz(2.9738, 4.0058, 0.8175)
Luminance0.0401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D07 #13073D
analogous
#3D2E07 #313D07 #163D07
triadic
#313D07 #07313D #3D0731
tetradic
#313D07 #073D2E #13073D #3D0716
square
#313D07 #073D2E #13073D #3D0716
split-complementary
#313D07 #07163D #2E073D
monochromatic
#161B03 #161B03 #313D07 #5D740D #89AB14

Accessibility & contrast

On white

11.66
#313D07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#313D07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D07
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D07#FFFFFF#000000##FFFFFF
##313D071.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413900
Deuteranopia (green-blind)
#40380C
Tritanopia (blue-blind)
#343933
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313d07;
/* rgb */ color: rgb(49, 61, 7);
/* oklch */ color: oklch(33.8% 0.076 121.9);
Tailwind
colors: {
  custom: {
    50: '#6b724c',
    500: '#313d07',
    950: '#000000',
  },
}
SCSS
$custom: #313d07;
$custom-light: #6b724c;
$custom-dark: #000000;
JSON
{
  "hex": "#313d07",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 7
  },
  "hsl": {
    "h": 73.333,
    "s": 79.412,
    "l": 13.333
  },
  "oklch": {
    "l": 0.33756,
    "c": 0.07568,
    "h": 121.9
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#313D07
secondary
#37237C
accent
#32F65D
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313D07

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

Preview Lab → · Contrast checker → · Palette generator →

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