#6C7A12#6C7A12

#6C7A12 is a mid, vivid yellow. Relative luminance 0.172; OKLCH L 54.9% C 0.121 H 117.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#6C7A12
RGBrgb(108, 122, 18)
HSLhsl(68, 74%, 27%)
HSVhsv(68, 85%, 48%)
CMYKcmyk(11.5%, 0%, 85.2%, 52.2%)
CIE-LABlab(48.45, -18.52, 49.50)
CIE-LCHlch(48.45, 52.85, 110.51°)
OKLaboklab(54.93% -0.0562 0.1073)
OKLCHoklch(54.93% 0.121 117.7)
XYZxyz(13.2534, 17.1510, 3.1844)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C7A12 #20127A
analogous
#7A5412 #6C7A12 #387A12
triadic
#6C7A12 #126C7A #7A126C
tetradic
#6C7A12 #127A54 #20127A #7A1238
square
#6C7A12 #127A54 #20127A #7A1238
split-complementary
#6C7A12 #12387A #54127A
monochromatic
#181B04 #3D450A #6C7A12 #9BAF1A #C6DF27

Accessibility & contrast

On white

4.74
#6C7A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#6C7A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C7A12
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C7A12#FFFFFF#000000##FFFFFF
##6C7A121.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#81741D
Tritanopia (blue-blind)
#737368
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #6c7a12;
/* rgb */ color: rgb(108, 122, 18);
/* oklch */ color: oklch(54.9% 0.121 117.7);
Tailwind
colors: {
  custom: {
    50: '#99a05c',
    500: '#6c7a12',
    950: '#000000',
  },
}
SCSS
$custom: #6c7a12;
$custom-light: #99a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#6c7a12",
  "rgb": {
    "r": 108,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 68.077,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.12112,
    "h": 117.7
  },
  "luminance": 0.17151
}

Semantic roles & 50–950 ramp

primary
#6C7A12
secondary
#4838B0
accent
#37F150
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E04
muted
#7E7E79

Preview Lab

Preview with #6C7A12

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

Preview Lab → · Contrast checker → · Palette generator →

#6C7A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva