#6B7A18#6B7A18

#6B7A18 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 54.9% C 0.119 H 118.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#6B7A18
RGBrgb(107, 122, 24)
HSLhsl(69, 67%, 29%)
HSVhsv(69, 80%, 48%)
CMYKcmyk(12.3%, 0%, 80.3%, 52.2%)
CIE-LABlab(48.40, -18.73, 47.61)
CIE-LCHlch(48.40, 51.16, 111.48°)
OKLaboklab(54.88% -0.0563 0.1044)
OKLCHoklch(54.88% 0.119 118.3)
XYZxyz(13.1881, 17.1109, 3.4720)
Luminance0.1711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B7A18 #27187A
analogous
#7A5818 #6B7A18 #3A7A18
triadic
#6B7A18 #186B7A #7A186B
tetradic
#6B7A18 #187A58 #27187A #7A183A
square
#6B7A18 #187A58 #27187A #7A183A
split-complementary
#6B7A18 #183A7A #58187A
monochromatic
#161A05 #3E470E #6B7A18 #98AD22 #BED735

Accessibility & contrast

On white

4.75
#6B7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#6B7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B7A18
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B7A18#FFFFFF#000000##FFFFFF
##6B7A181.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#817321
Tritanopia (blue-blind)
#727368
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #6b7a18;
/* rgb */ color: rgb(107, 122, 24);
/* oklch */ color: oklch(54.9% 0.119 118.3);
Tailwind
colors: {
  custom: {
    50: '#98a05e',
    500: '#6b7a18',
    950: '#000000',
  },
}
SCSS
$custom: #6b7a18;
$custom-light: #98a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#6b7a18",
  "rgb": {
    "r": 107,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 69.184,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54877,
    "c": 0.11859,
    "h": 118.3
  },
  "luminance": 0.17111
}

Semantic roles & 50–950 ramp

primary
#6B7A18
secondary
#503FAF
accent
#3EEA58
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6B7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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