#7E8F12#7E8F12

#7E8F12 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.5% C 0.138 H 118.0°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7E8F12
RGBrgb(126, 143, 18)
HSLhsl(68, 78%, 32%)
HSVhsv(68, 87%, 56%)
CMYKcmyk(11.9%, 0%, 87.4%, 43.9%)
CIE-LABlab(56.21, -21.30, 56.65)
CIE-LCHlch(56.21, 60.52, 110.61°)
OKLaboklab(61.53% -0.0648 0.122)
OKLCHoklch(61.53% 0.138 118)
XYZxyz(18.5363, 24.1244, 4.2521)
Luminance0.2412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F12 #23128F
analogous
#8F6212 #7E8F12 #408F12
triadic
#7E8F12 #127E8F #8F127E
tetradic
#7E8F12 #128F62 #23128F #8F1240
square
#7E8F12 #128F62 #23128F #8F1240
split-complementary
#7E8F12 #12408F #62128F
monochromatic
#1E2204 #4E590B #7E8F12 #AEC519 #CEE636

Accessibility & contrast

On white

3.61
#7E8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#7E8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F12
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F12#FFFFFF#000000##000000
##7E8F121.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978721
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f12;
/* rgb */ color: rgb(126, 143, 18);
/* oklch */ color: oklch(61.5% 0.138 118.0);
Tailwind
colors: {
  custom: {
    50: '#a7af60',
    500: '#7e8f12',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f12;
$custom-light: #a7af60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f12",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 68.16,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61526,
    "c": 0.13809,
    "h": 118
  },
  "luminance": 0.24124
}

Semantic roles & 50–950 ramp

primary
#7E8F12
secondary
#4C3AC3
accent
#34F44E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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