#7E9015#7E9015

#7E9015 is a mid, vivid yellow. Relative luminance 0.244; OKLCH L 61.8% C 0.138 H 118.4°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7E9015
RGBrgb(126, 144, 21)
HSLhsl(69, 75%, 32%)
HSVhsv(69, 85%, 56%)
CMYKcmyk(12.5%, 0%, 85.4%, 43.5%)
CIE-LABlab(56.52, -21.72, 56.20)
CIE-LCHlch(56.52, 60.25, 111.13°)
OKLaboklab(61.78% -0.0657 0.1215)
OKLCHoklch(61.78% 0.138 118.4)
XYZxyz(18.7133, 24.4364, 4.4402)
Luminance0.2444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9015 #271590
analogous
#906415 #7E9015 #419015
triadic
#7E9015 #157E90 #90157E
tetradic
#7E9015 #159064 #271590 #901541
square
#7E9015 #159064 #271590 #901541
split-complementary
#7E9015 #154190 #641590
monochromatic
#212505 #4F5B0D #7E9015 #ADC51D #CAE33D

Accessibility & contrast

On white

3.57
#7E9015 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#7E9015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9015
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9015#FFFFFF#000000##000000
##7E90151.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#988823
Tritanopia (blue-blind)
#86887A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7e9015;
/* rgb */ color: rgb(126, 144, 21);
/* oklch */ color: oklch(61.8% 0.138 118.4);
Tailwind
colors: {
  custom: {
    50: '#a7b061',
    500: '#7e9015',
    950: '#000000',
  },
}
SCSS
$custom: #7e9015;
$custom-light: #a7b061;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9015",
  "rgb": {
    "r": 126,
    "g": 144,
    "b": 21
  },
  "hsl": {
    "h": 68.78,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61779,
    "c": 0.13812,
    "h": 118.4
  },
  "luminance": 0.24436
}

Semantic roles & 50–950 ramp

primary
#7E9015
secondary
#523EC2
accent
#37F152
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E9015

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

Preview Lab → · Contrast checker → · Palette generator →

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