#31660F#31660F

#31660F is a mid, vivid yellow-green. Relative luminance 0.102; OKLCH L 45.6% C 0.128 H 136.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#31660F
RGBrgb(49, 102, 15)
HSLhsl(97, 74%, 23%)
HSVhsv(97, 85%, 40%)
CMYKcmyk(52%, 0%, 85.3%, 60%)
CIE-LABlab(38.18, -33.31, 39.81)
CIE-LCHlch(38.18, 51.90, 129.92°)
OKLaboklab(45.6% -0.0927 0.0879)
OKLCHoklch(45.6% 0.128 136.5)
XYZxyz(6.1040, 10.1898, 2.0970)
Luminance0.1019 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31660F #440F66
analogous
#5C660F #31660F #0F6619
triadic
#31660F #0F3166 #660F31
tetradic
#31660F #0F5C66 #440F66 #66190F
square
#31660F #0F5C66 #440F66 #66190F
split-complementary
#31660F #190F66 #660F5C
monochromatic
#0D1B04 #173107 #31660F #4B9B17 #64D11F

Accessibility & contrast

On white

6.91
#31660F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#31660F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31660F
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31660F#FFFFFF#000000##FFFFFF
##31660F1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#635819
Tritanopia (blue-blind)
#2E6256
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #31660f;
/* rgb */ color: rgb(49, 102, 15);
/* oklch */ color: oklch(45.6% 0.128 136.5);
Tailwind
colors: {
  custom: {
    50: '#6f9256',
    500: '#31660f',
    950: '#000000',
  },
}
SCSS
$custom: #31660f;
$custom-light: #6f9256;
$custom-dark: #000000;
JSON
{
  "hex": "#31660f",
  "rgb": {
    "r": 49,
    "g": 102,
    "b": 15
  },
  "hsl": {
    "h": 96.552,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.45603,
    "c": 0.12781,
    "h": 136.5
  },
  "luminance": 0.1019
}

Semantic roles & 50–950 ramp

primary
#31660F
secondary
#74329F
accent
#37F1A8
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #31660F

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

Preview Lab → · Contrast checker → · Palette generator →

#31660F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva