#7C8310#7C8310

#7C8310 is a mid, vivid yellow. Relative luminance 0.206; OKLCH L 58.5% C 0.126 H 113.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7C8310
RGBrgb(124, 131, 16)
HSLhsl(64, 78%, 29%)
HSVhsv(64, 88%, 51%)
CMYKcmyk(5.3%, 0%, 87.8%, 48.6%)
CIE-LABlab(52.46, -16.03, 53.92)
CIE-LCHlch(52.46, 56.25, 106.56°)
OKLaboklab(58.47% -0.0504 0.1158)
OKLCHoklch(58.47% 0.126 113.5)
XYZxyz(16.5226, 20.5555, 3.5873)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8310 #171083
analogous
#835110 #7C8310 #438310
triadic
#7C8310 #107C83 #83107C
tetradic
#7C8310 #108351 #171083 #831043
square
#7C8310 #108351 #171083 #831043
split-complementary
#7C8310 #104383 #511083
monochromatic
#1A1B03 #484C09 #7C8310 #B0BA17 #D9E529

Accessibility & contrast

On white

4.11
#7C8310 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#7C8310 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8310
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8310#FFFFFF#000000##000000
##7C83101.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#8D7E1D
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8310;
/* rgb */ color: rgb(124, 131, 16);
/* oklch */ color: oklch(58.5% 0.126 113.5);
Tailwind
colors: {
  custom: {
    50: '#a6a65d',
    500: '#7c8310',
    950: '#000000',
  },
}
SCSS
$custom: #7c8310;
$custom-light: #a6a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8310",
  "rgb": {
    "r": 124,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 63.652,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58469,
    "c": 0.12625,
    "h": 113.5
  },
  "luminance": 0.20555
}

Semantic roles & 50–950 ramp

primary
#7C8310
secondary
#3E36B9
accent
#33F53F
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8310

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

Preview Lab → · Contrast checker → · Palette generator →

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