#7E8B1E#7E8B1E

#7E8B1E is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.128 H 116.5°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8B1E
RGBrgb(126, 139, 30)
HSLhsl(67, 64%, 33%)
HSVhsv(67, 78%, 55%)
CMYKcmyk(9.4%, 0%, 78.4%, 45.5%)
CIE-LABlab(55.07, -18.81, 52.30)
CIE-LCHlch(55.07, 55.58, 109.78°)
OKLaboklab(60.62% -0.0571 0.1148)
OKLCHoklch(60.62% 0.128 116.5)
XYZxyz(18.0716, 22.9948, 4.7145)
Luminance0.2299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B1E #2B1E8B
analogous
#8B611E #7E8B1E #478B1E
triadic
#7E8B1E #1E7E8B #8B1E7E
tetradic
#7E8B1E #1E8B61 #2B1E8B #8B1E47
square
#7E8B1E #1E8B61 #2B1E8B #8B1E47
split-complementary
#7E8B1E #1E478B #611E8B
monochromatic
#232608 #505913 #7E8B1E #ACBD29 #C7D84B

Accessibility & contrast

On white

3.75
#7E8B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B1E
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B1E#FFFFFF#000000##000000
##7E8B1E1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958301
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#868377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b1e;
/* rgb */ color: rgb(126, 139, 30);
/* oklch */ color: oklch(60.6% 0.128 116.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac64',
    500: '#7e8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b1e;
$custom-light: #a7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b1e",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 67.156,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60621,
    "c": 0.12817,
    "h": 116.5
  },
  "luminance": 0.22995
}

Semantic roles & 50–950 ramp

primary
#7E8B1E
secondary
#584ABB
accent
#40E754
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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