#6B7012#6B7012

#6B7012 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.4% C 0.110 H 112.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#6B7012
RGBrgb(107, 112, 18)
HSLhsl(63, 72%, 25%)
HSVhsv(63, 84%, 44%)
CMYKcmyk(4.5%, 0%, 83.9%, 56.1%)
CIE-LABlab(45.30, -13.62, 46.73)
CIE-LCHlch(45.30, 48.67, 106.26°)
OKLaboklab(52.38% -0.0427 0.1014)
OKLCHoklch(52.38% 0.11 112.8)
XYZxyz(11.9672, 14.7581, 2.7903)
Luminance0.1476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B7012 #171270
analogous
#704612 #6B7012 #3C7012
triadic
#6B7012 #126B70 #70126B
tetradic
#6B7012 #127046 #171270 #70123C
square
#6B7012 #127046 #171270 #70123C
split-complementary
#6B7012 #123C70 #461270
monochromatic
#191A04 #393B0A #6B7012 #9DA51A #D0D923

Accessibility & contrast

On white

5.31
#6B7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#6B7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B7012
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B7012#FFFFFF#000000##FFFFFF
##6B70121.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b7012;
/* rgb */ color: rgb(107, 112, 18);
/* oklch */ color: oklch(52.4% 0.110 112.8);
Tailwind
colors: {
  custom: {
    50: '#99985a',
    500: '#6b7012',
    950: '#000000',
  },
}
SCSS
$custom: #6b7012;
$custom-light: #99985a;
$custom-dark: #000000;
JSON
{
  "hex": "#6b7012",
  "rgb": {
    "r": 107,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 63.191,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.5238,
    "c": 0.10998,
    "h": 112.8
  },
  "luminance": 0.14758
}

Semantic roles & 50–950 ramp

primary
#6B7012
secondary
#3D37A7
accent
#39EF42
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0D04
muted
#7E7E79

Preview Lab

Preview with #6B7012

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

Preview Lab → · Contrast checker → · Palette generator →

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