#6A7212#6A7212

#6A7212 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 52.8% C 0.113 H 114.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#6A7212
RGBrgb(106, 114, 18)
HSLhsl(65, 73%, 26%)
HSVhsv(65, 84%, 45%)
CMYKcmyk(7%, 0%, 84.2%, 55.3%)
CIE-LABlab(45.83, -15.18, 47.16)
CIE-LCHlch(45.83, 49.54, 107.84°)
OKLaboklab(52.78% -0.0469 0.1023)
OKLCHoklch(52.78% 0.113 114.6)
XYZxyz(12.0707, 15.1427, 2.8591)
Luminance0.1514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7212 #1A1272
analogous
#724A12 #6A7212 #3A7212
triadic
#6A7212 #126A72 #72126A
tetradic
#6A7212 #12724A #1A1272 #72123A
square
#6A7212 #12724A #1A1272 #72123A
split-complementary
#6A7212 #123A72 #4A1272
monochromatic
#191A04 #393D0A #6A7212 #9BA71A #CCDC23

Accessibility & contrast

On white

5.21
#6A7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#6A7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A7212
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A7212#FFFFFF#000000##FFFFFF
##6A72121.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#7B6D1C
Tritanopia (blue-blind)
#726B61
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6a7212;
/* rgb */ color: rgb(106, 114, 18);
/* oklch */ color: oklch(52.8% 0.113 114.6);
Tailwind
colors: {
  custom: {
    50: '#989a5a',
    500: '#6a7212',
    950: '#000000',
  },
}
SCSS
$custom: #6a7212;
$custom-light: #989a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7212",
  "rgb": {
    "r": 106,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 65,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.52782,
    "c": 0.11257,
    "h": 114.6
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#6A7212
secondary
#4037A9
accent
#38EF48
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E04
muted
#7E7E79

Preview Lab

Preview with #6A7212

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

Preview Lab → · Contrast checker → · Palette generator →

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