#7E901C#7E901C

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

Color values

HEX#7E901C
RGBrgb(126, 144, 28)
HSLhsl(69, 67%, 34%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(12.5%, 0%, 80.6%, 43.5%)
CIE-LABlab(56.55, -21.46, 54.28)
CIE-LCHlch(56.55, 58.37, 111.57°)
OKLaboklab(61.81% -0.0645 0.1186)
OKLCHoklch(61.81% 0.135 118.6)
XYZxyz(18.7875, 24.4661, 4.8311)
Luminance0.2447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E901C #2E1C90
analogous
#90681C #7E901C #44901C
triadic
#7E901C #1C7E90 #901C7E
tetradic
#7E901C #1C9068 #2E1C90 #901C44
square
#7E901C #1C9068 #2E1C90 #901C44
split-complementary
#7E901C #1C4490 #681C90
monochromatic
#242A08 #515D12 #7E901C #ABC326 #C5DC4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E901C#FFFFFF#000000##000000
##7E901C1.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)
#988828
Tritanopia (blue-blind)
#86887B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7e901c;
/* rgb */ color: rgb(126, 144, 28);
/* oklch */ color: oklch(61.8% 0.135 118.6);
Tailwind
colors: {
  custom: {
    50: '#a7b063',
    500: '#7e901c',
    950: '#000000',
  },
}
SCSS
$custom: #7e901c;
$custom-light: #a7b063;
$custom-dark: #000000;
JSON
{
  "hex": "#7e901c",
  "rgb": {
    "r": 126,
    "g": 144,
    "b": 28
  },
  "hsl": {
    "h": 69.31,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61812,
    "c": 0.13503,
    "h": 118.6
  },
  "luminance": 0.24466
}

Semantic roles & 50–950 ramp

primary
#7E901C
secondary
#5C4ABE
accent
#3DEA58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E901C

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

Preview Lab → · Contrast checker → · Palette generator →

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