#7E8E1C#7E8E1C

#7E8E1C 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#7E8E1C
RGBrgb(126, 142, 28)
HSLhsl(68, 67%, 33%)
HSVhsv(68, 80%, 56%)
CMYKcmyk(11.3%, 0%, 80.3%, 44.3%)
CIE-LABlab(55.95, -20.44, 53.75)
CIE-LCHlch(55.95, 57.50, 110.83°)
OKLaboklab(61.33% -0.0617 0.1175)
OKLCHoklch(61.33% 0.133 117.7)
XYZxyz(18.4872, 23.8657, 4.7310)
Luminance0.2387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E1C #2C1C8E
analogous
#8E651C #7E8E1C #458E1C
triadic
#7E8E1C #1C7E8E #8E1C7E
tetradic
#7E8E1C #1C8E65 #2C1C8E #8E1C45
square
#7E8E1C #1C8E65 #2C1C8E #8E1C45
split-complementary
#7E8E1C #1C458E #651C8E
monochromatic
#232808 #515B12 #7E8E1C #ABC126 #C7DB49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8E1C#FFFFFF#000000##000000
##7E8E1C1.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)
#968727
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e1c;
/* rgb */ color: rgb(126, 142, 28);
/* oklch */ color: oklch(61.3% 0.133 117.7);
Tailwind
colors: {
  custom: {
    50: '#a7af63',
    500: '#7e8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e1c;
$custom-light: #a7af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e1c",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 68.421,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61331,
    "c": 0.13269,
    "h": 117.7
  },
  "luminance": 0.23865
}

Semantic roles & 50–950 ramp

primary
#7E8E1C
secondary
#5949BD
accent
#3EEA56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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