#6B7818#6B7818

#6B7818 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.4% C 0.116 H 117.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#6B7818
RGBrgb(107, 120, 24)
HSLhsl(68, 67%, 28%)
HSVhsv(68, 80%, 47%)
CMYKcmyk(10.8%, 0%, 80%, 52.9%)
CIE-LABlab(47.78, -17.68, 47.05)
CIE-LCHlch(47.78, 50.26, 110.59°)
OKLaboklab(54.38% -0.0534 0.1032)
OKLCHoklch(54.38% 0.116 117.4)
XYZxyz(12.9451, 16.6248, 3.3909)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B7818 #251878
analogous
#785518 #6B7818 #3B7818
triadic
#6B7818 #186B78 #78186B
tetradic
#6B7818 #187855 #251878 #78183B
square
#6B7818 #187855 #251878 #78183B
split-complementary
#6B7818 #183B78 #551878
monochromatic
#171A05 #3E450E #6B7818 #98AB22 #C0D634

Accessibility & contrast

On white

4.86
#6B7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#6B7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B7818
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B7818#FFFFFF#000000##FFFFFF
##6B78181.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7F7221
Tritanopia (blue-blind)
#727166
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6b7818;
/* rgb */ color: rgb(107, 120, 24);
/* oklch */ color: oklch(54.4% 0.116 117.4);
Tailwind
colors: {
  custom: {
    50: '#989e5e',
    500: '#6b7818',
    950: '#000000',
  },
}
SCSS
$custom: #6b7818;
$custom-light: #989e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#6b7818",
  "rgb": {
    "r": 107,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 68.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54382,
    "c": 0.11617,
    "h": 117.4
  },
  "luminance": 0.16625
}

Semantic roles & 50–950 ramp

primary
#6B7818
secondary
#4E3FAD
accent
#3EEA55
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6B7818

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

Preview Lab → · Contrast checker → · Palette generator →

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