#7E8E12#7E8E12

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

Color values

HEX#7E8E12
RGBrgb(126, 142, 18)
HSLhsl(68, 78%, 31%)
HSVhsv(68, 87%, 56%)
CMYKcmyk(11.3%, 0%, 87.3%, 44.3%)
CIE-LABlab(55.91, -20.79, 56.40)
CIE-LCHlch(55.91, 60.11, 110.24°)
OKLaboklab(61.29% -0.0634 0.1214)
OKLCHoklch(61.29% 0.137 117.6)
XYZxyz(18.3869, 23.8255, 4.2023)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E12 #22128E
analogous
#8E6012 #7E8E12 #408E12
triadic
#7E8E12 #127E8E #8E127E
tetradic
#7E8E12 #128E60 #22128E #8E1240
square
#7E8E12 #128E60 #22128E #8E1240
split-complementary
#7E8E12 #12408E #60128E
monochromatic
#1E2104 #4E580B #7E8E12 #AEC419 #CFE535

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8E12#FFFFFF#000000##000000
##7E8E121.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)
#978721
Tritanopia (blue-blind)
#868579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e12;
/* rgb */ color: rgb(126, 142, 18);
/* oklch */ color: oklch(61.3% 0.137 117.6);
Tailwind
colors: {
  custom: {
    50: '#a7af5f',
    500: '#7e8e12',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e12;
$custom-light: #a7af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e12",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 67.742,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.61285,
    "c": 0.13697,
    "h": 117.6
  },
  "luminance": 0.23825
}

Semantic roles & 50–950 ramp

primary
#7E8E12
secondary
#4B3AC2
accent
#34F44D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8E12

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

Preview Lab → · Contrast checker → · Palette generator →

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