#7E8E1B#7E8E1B

#7E8E1B is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.3% C 0.133 H 117.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E8E1B
RGBrgb(126, 142, 27)
HSLhsl(68, 68%, 33%)
HSVhsv(68, 81%, 56%)
CMYKcmyk(11.3%, 0%, 81%, 44.3%)
CIE-LABlab(55.95, -20.48, 54.05)
CIE-LCHlch(55.95, 57.80, 110.76°)
OKLaboklab(61.33% -0.0619 0.1179)
OKLCHoklch(61.33% 0.133 117.7)
XYZxyz(18.4755, 23.8610, 4.6690)
Luminance0.2386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E1B #2B1B8E
analogous
#8E641B #7E8E1B #448E1B
triadic
#7E8E1B #1B7E8E #8E1B7E
tetradic
#7E8E1B #1B8E64 #2B1B8E #8E1B44
square
#7E8E1B #1B8E64 #2B1B8E #8E1B44
split-complementary
#7E8E1B #1B448E #641B8E
monochromatic
#232707 #505B11 #7E8E1B #ACC125 #C7DC47

Accessibility & contrast

On white

3.64
#7E8E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7E8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E1B
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E1B#FFFFFF#000000##000000
##7E8E1B1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968726
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e1b;
/* rgb */ color: rgb(126, 142, 27);
/* oklch */ color: oklch(61.3% 0.133 117.7);
Tailwind
colors: {
  custom: {
    50: '#a7af63',
    500: '#7e8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e1b;
$custom-light: #a7af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e1b",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 68.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61325,
    "c": 0.13319,
    "h": 117.7
  },
  "luminance": 0.23861
}

Semantic roles & 50–950 ramp

primary
#7E8E1B
secondary
#5847BE
accent
#3DEB55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

#7E8E1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva