#7E8F1B#7E8F1B

#7E8F1B is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.6% C 0.134 H 118.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7E8F1B
RGBrgb(126, 143, 27)
HSLhsl(69, 68%, 33%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(11.9%, 0%, 81.1%, 43.9%)
CIE-LABlab(56.25, -20.99, 54.31)
CIE-LCHlch(56.25, 58.23, 111.13°)
OKLaboklab(61.57% -0.0633 0.1185)
OKLCHoklch(61.57% 0.134 118.1)
XYZxyz(18.6249, 24.1599, 4.7189)
Luminance0.2416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F1B #2C1B8F
analogous
#8F661B #7E8F1B #448F1B
triadic
#7E8F1B #1B7E8F #8F1B7E
tetradic
#7E8F1B #1B8F66 #2C1B8F #8F1B44
square
#7E8F1B #1B8F66 #2C1B8F #8F1B44
split-complementary
#7E8F1B #1B448F #661B8F
monochromatic
#232808 #515C11 #7E8F1B #ABC225 #C7DC48

Accessibility & contrast

On white

3.60
#7E8F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#7E8F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F1B
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F1B#FFFFFF#000000##000000
##7E8F1B1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#86877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f1b;
/* rgb */ color: rgb(126, 143, 27);
/* oklch */ color: oklch(61.6% 0.134 118.1);
Tailwind
colors: {
  custom: {
    50: '#a7af63',
    500: '#7e8f1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f1b;
$custom-light: #a7af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f1b",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 68.793,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61566,
    "c": 0.13435,
    "h": 118.1
  },
  "luminance": 0.2416
}

Semantic roles & 50–950 ramp

primary
#7E8F1B
secondary
#5948BE
accent
#3DEB56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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