#7E841C#7E841C

#7E841C is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.121 H 113.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7E841C
RGBrgb(126, 132, 28)
HSLhsl(63, 65%, 31%)
HSVhsv(63, 79%, 52%)
CMYKcmyk(4.5%, 0%, 78.8%, 48.2%)
CIE-LABlab(52.97, -15.23, 51.04)
CIE-LCHlch(52.97, 53.26, 106.61°)
OKLaboklab(58.94% -0.0473 0.1117)
OKLCHoklch(58.94% 0.121 113)
XYZxyz(17.0656, 21.0224, 4.2571)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E841C #221C84
analogous
#84561C #7E841C #4A841C
triadic
#7E841C #1C7E84 #841C7E
tetradic
#7E841C #1C8456 #221C84 #841C4A
square
#7E841C #1C8456 #221C84 #841C4A
split-complementary
#7E841C #1C4A84 #561C84
monochromatic
#1E1F07 #4E5211 #7E841C #AEB627 #CFD743

Accessibility & contrast

On white

4.04
#7E841C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7E841C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E841C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E841C#FFFFFF#000000##000000
##7E841C1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D01
Deuteranopia (green-blind)
#8E8025
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e841c;
/* rgb */ color: rgb(126, 132, 28);
/* oklch */ color: oklch(58.9% 0.121 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a762',
    500: '#7e841c',
    950: '#000000',
  },
}
SCSS
$custom: #7e841c;
$custom-light: #a7a762;
$custom-dark: #000000;
JSON
{
  "hex": "#7e841c",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 63.462,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.58939,
    "c": 0.12132,
    "h": 113
  },
  "luminance": 0.21022
}

Semantic roles & 50–950 ramp

primary
#7E841C
secondary
#4B45B7
accent
#40E84A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E841C

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

Preview Lab → · Contrast checker → · Palette generator →

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