#6A7312#6A7312

#6A7312 is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.0% C 0.114 H 115.2°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#6A7312
RGBrgb(106, 115, 18)
HSLhsl(66, 73%, 26%)
HSVhsv(66, 84%, 45%)
CMYKcmyk(7.8%, 0%, 84.3%, 54.9%)
CIE-LABlab(46.14, -15.72, 47.42)
CIE-LCHlch(46.14, 49.96, 108.34°)
OKLaboklab(53.03% -0.0484 0.1029)
OKLCHoklch(53.03% 0.114 115.2)
XYZxyz(12.1841, 15.3695, 2.8969)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7312 #1B1273
analogous
#734B12 #6A7312 #397312
triadic
#6A7312 #126A73 #73126A
tetradic
#6A7312 #12734B #1B1273 #731239
square
#6A7312 #12734B #1B1273 #731239
split-complementary
#6A7312 #123973 #4B1273
monochromatic
#181A04 #393E0A #6A7312 #9BA81A #CBDD23

Accessibility & contrast

On white

5.15
#6A7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#6A7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A7312
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A7312#FFFFFF#000000##FFFFFF
##6A73121.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#7B6E1C
Tritanopia (blue-blind)
#726C62
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6a7312;
/* rgb */ color: rgb(106, 115, 18);
/* oklch */ color: oklch(53.0% 0.114 115.2);
Tailwind
colors: {
  custom: {
    50: '#989b5b',
    500: '#6a7312',
    950: '#000000',
  },
}
SCSS
$custom: #6a7312;
$custom-light: #989b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7312",
  "rgb": {
    "r": 106,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 65.567,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.53029,
    "c": 0.11371,
    "h": 115.2
  },
  "luminance": 0.15369
}

Semantic roles & 50–950 ramp

primary
#6A7312
secondary
#4237AA
accent
#38F049
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E04
muted
#7E7E79

Preview Lab

Preview with #6A7312

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

Preview Lab → · Contrast checker → · Palette generator →

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