#6A7012#6A7012

#6A7012 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.3% C 0.110 H 113.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#6A7012
RGBrgb(106, 112, 18)
HSLhsl(64, 72%, 25%)
HSVhsv(64, 84%, 44%)
CMYKcmyk(5.4%, 0%, 83.9%, 56.1%)
CIE-LABlab(45.22, -14.09, 46.62)
CIE-LCHlch(45.22, 48.70, 106.82°)
OKLaboklab(52.29% -0.0439 0.1012)
OKLCHoklch(52.29% 0.11 113.5)
XYZxyz(11.8476, 14.6964, 2.7847)
Luminance0.1470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7012 #181270
analogous
#704712 #6A7012 #3B7012
triadic
#6A7012 #126A70 #70126A
tetradic
#6A7012 #127047 #181270 #70123B
square
#6A7012 #127047 #181270 #70123B
split-complementary
#6A7012 #123B70 #471270
monochromatic
#191A04 #383B0A #6A7012 #9CA51A #CED923

Accessibility & contrast

On white

5.33
#6A7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#6A7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A7012
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A7012#FFFFFF#000000##FFFFFF
##6A70121.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#796C1B
Tritanopia (blue-blind)
#72695F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6a7012;
/* rgb */ color: rgb(106, 112, 18);
/* oklch */ color: oklch(52.3% 0.110 113.5);
Tailwind
colors: {
  custom: {
    50: '#98985a',
    500: '#6a7012',
    950: '#000000',
  },
}
SCSS
$custom: #6a7012;
$custom-light: #98985a;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7012",
  "rgb": {
    "r": 106,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 63.83,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.5229,
    "c": 0.11029,
    "h": 113.5
  },
  "luminance": 0.14696
}

Semantic roles & 50–950 ramp

primary
#6A7012
secondary
#3E37A7
accent
#39EF44
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0D04
muted
#7E7E79

Preview Lab

Preview with #6A7012

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

Preview Lab → · Contrast checker → · Palette generator →

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