#7E8310#7E8310

#7E8310 is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.126 H 112.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7E8310
RGBrgb(126, 131, 16)
HSLhsl(63, 78%, 29%)
HSVhsv(63, 88%, 51%)
CMYKcmyk(3.8%, 0%, 87.8%, 48.6%)
CIE-LABlab(52.63, -15.12, 54.12)
CIE-LCHlch(52.63, 56.20, 105.61°)
OKLaboklab(58.64% -0.0479 0.1161)
OKLCHoklch(58.64% 0.126 112.4)
XYZxyz(16.8146, 20.7061, 3.6010)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8310 #151083
analogous
#834F10 #7E8310 #458310
triadic
#7E8310 #107E83 #83107E
tetradic
#7E8310 #10834F #151083 #831045
square
#7E8310 #10834F #151083 #831045
split-complementary
#7E8310 #104583 #4F1083
monochromatic
#1A1B03 #4A4C09 #7E8310 #B2BA17 #DDE529

Accessibility & contrast

On white

4.08
#7E8310 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#7E8310 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8310
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8310#FFFFFF#000000##000000
##7E83101.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#8E7F1D
Tritanopia (blue-blind)
#877A6F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e8310;
/* rgb */ color: rgb(126, 131, 16);
/* oklch */ color: oklch(58.6% 0.126 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a65d',
    500: '#7e8310',
    950: '#000000',
  },
}
SCSS
$custom: #7e8310;
$custom-light: #a7a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8310",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 62.609,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58644,
    "c": 0.12562,
    "h": 112.4
  },
  "luminance": 0.20706
}

Semantic roles & 50–950 ramp

primary
#7E8310
secondary
#3C36B9
accent
#33F53B
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8310

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

Preview Lab → · Contrast checker → · Palette generator →

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