#6E781B#6E781B

#6E781B is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.7% C 0.113 H 115.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#6E781B
RGBrgb(110, 120, 27)
HSLhsl(66, 63%, 29%)
HSVhsv(66, 78%, 47%)
CMYKcmyk(8.3%, 0%, 77.5%, 52.9%)
CIE-LABlab(48.04, -16.17, 46.33)
CIE-LCHlch(48.04, 49.07, 109.23°)
OKLaboklab(54.66% -0.0491 0.1021)
OKLCHoklch(54.66% 0.113 115.7)
XYZxyz(13.3451, 16.8273, 3.5817)
Luminance0.1683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E781B #251B78
analogous
#78541B #6E781B #40781B
triadic
#6E781B #1B6E78 #781B6E
tetradic
#6E781B #1B7854 #251B78 #781B40
square
#6E781B #1B7854 #251B78 #781B40
split-complementary
#6E781B #1B4078 #541B78
monochromatic
#171906 #404610 #6E781B #9CAA26 #C2D33B

Accessibility & contrast

On white

4.81
#6E781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#6E781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E781B
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E781B#FFFFFF#000000##FFFFFF
##6E781B1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817106
Deuteranopia (green-blind)
#807323
Tritanopia (blue-blind)
#757166
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6e781b;
/* rgb */ color: rgb(110, 120, 27);
/* oklch */ color: oklch(54.7% 0.113 115.7);
Tailwind
colors: {
  custom: {
    50: '#9b9e5f',
    500: '#6e781b',
    950: '#000000',
  },
}
SCSS
$custom: #6e781b;
$custom-light: #9b9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#6e781b",
  "rgb": {
    "r": 110,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 66.452,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54655,
    "c": 0.11333,
    "h": 115.7
  },
  "luminance": 0.16827
}

Semantic roles & 50–950 ramp

primary
#6E781B
secondary
#4E43AC
accent
#41E653
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6E781B

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

Preview Lab → · Contrast checker → · Palette generator →

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