#7E901F#7E901F

#7E901F is a mid, vivid yellow. Relative luminance 0.245; OKLCH L 61.8% C 0.133 H 118.6°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7E901F
RGBrgb(126, 144, 31)
HSLhsl(70, 65%, 34%)
HSVhsv(70, 78%, 56%)
CMYKcmyk(12.5%, 0%, 78.5%, 43.5%)
CIE-LABlab(56.57, -21.33, 53.35)
CIE-LCHlch(56.57, 57.46, 111.79°)
OKLaboklab(61.83% -0.064 0.1172)
OKLCHoklch(61.83% 0.133 118.6)
XYZxyz(18.8252, 24.4812, 5.0297)
Luminance0.2448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E901F #311F90
analogous
#906A1F #7E901F #45901F
triadic
#7E901F #1F7E90 #901F7E
tetradic
#7E901F #1F906A #311F90 #901F45
square
#7E901F #1F906A #311F90 #901F45
split-complementary
#7E901F #1F4590 #6A1F90
monochromatic
#262B09 #525E14 #7E901F #AAC22A #C3D950

Accessibility & contrast

On white

3.56
#7E901F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#7E901F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E901F
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E901F#FFFFFF#000000##000000
##7E901F1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8801
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#86887B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7e901f;
/* rgb */ color: rgb(126, 144, 31);
/* oklch */ color: oklch(61.8% 0.133 118.6);
Tailwind
colors: {
  custom: {
    50: '#a7b065',
    500: '#7e901f',
    950: '#000000',
  },
}
SCSS
$custom: #7e901f;
$custom-light: #a7b065;
$custom-dark: #000000;
JSON
{
  "hex": "#7e901f",
  "rgb": {
    "r": 126,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 69.558,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61829,
    "c": 0.13348,
    "h": 118.6
  },
  "luminance": 0.24481
}

Semantic roles & 50–950 ramp

primary
#7E901F
secondary
#604EBC
accent
#40E85B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E901F

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

Preview Lab → · Contrast checker → · Palette generator →

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