#7E901B#7E901B

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

Color values

HEX#7E901B
RGBrgb(126, 144, 27)
HSLhsl(69, 68%, 34%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(12.5%, 0%, 81.3%, 43.5%)
CIE-LABlab(56.55, -21.50, 54.58)
CIE-LCHlch(56.55, 58.66, 111.50°)
OKLaboklab(61.81% -0.0647 0.1191)
OKLCHoklch(61.81% 0.136 118.5)
XYZxyz(18.7757, 24.4614, 4.7691)
Luminance0.2446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E901B #2D1B90
analogous
#90671B #7E901B #43901B
triadic
#7E901B #1B7E90 #901B7E
tetradic
#7E901B #1B9067 #2D1B90 #901B43
square
#7E901B #1B9067 #2D1B90 #901B43
split-complementary
#7E901B #1B4390 #671B90
monochromatic
#242908 #515C11 #7E901B #ABC425 #C6DD49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E901B#FFFFFF#000000##000000
##7E901B1.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#86887B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7e901b;
/* rgb */ color: rgb(126, 144, 27);
/* oklch */ color: oklch(61.8% 0.136 118.5);
Tailwind
colors: {
  custom: {
    50: '#a7b063',
    500: '#7e901b',
    950: '#000000',
  },
}
SCSS
$custom: #7e901b;
$custom-light: #a7b063;
$custom-dark: #000000;
JSON
{
  "hex": "#7e901b",
  "rgb": {
    "r": 126,
    "g": 144,
    "b": 27
  },
  "hsl": {
    "h": 69.231,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61807,
    "c": 0.13551,
    "h": 118.5
  },
  "luminance": 0.24461
}

Semantic roles & 50–950 ramp

primary
#7E901B
secondary
#5A48BF
accent
#3DEB57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E901B

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

Preview Lab → · Contrast checker → · Palette generator →

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