#7D8013#7D8013

#7D8013 is a mid, vivid yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.122 H 111.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7D8013
RGBrgb(125, 128, 19)
HSLhsl(62, 74%, 29%)
HSVhsv(62, 85%, 50%)
CMYKcmyk(2.3%, 0%, 85.2%, 49.8%)
CIE-LABlab(51.66, -13.89, 52.54)
CIE-LCHlch(51.66, 54.34, 104.80°)
OKLaboklab(57.86% -0.0443 0.1133)
OKLCHoklch(57.86% 0.122 111.4)
XYZxyz(16.2948, 19.8458, 3.5882)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8013 #161380
analogous
#804D13 #7D8013 #478013
triadic
#7D8013 #137D80 #80137D
tetradic
#7D8013 #13804D #161380 #801347
square
#7D8013 #13804D #161380 #801347
split-complementary
#7D8013 #134780 #4D1380
monochromatic
#1A1B04 #494B0B #7D8013 #B1B51B #DBE02D

Accessibility & contrast

On white

4.23
#7D8013 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7D8013 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8013
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8013#FFFFFF#000000##000000
##7D80131.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C1E
Tritanopia (blue-blind)
#86776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d8013;
/* rgb */ color: rgb(125, 128, 19);
/* oklch */ color: oklch(57.9% 0.122 111.4);
Tailwind
colors: {
  custom: {
    50: '#a6a45e',
    500: '#7d8013',
    950: '#000000',
  },
}
SCSS
$custom: #7d8013;
$custom-light: #a6a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8013",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 19
  },
  "hsl": {
    "h": 61.651,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57855,
    "c": 0.1216,
    "h": 111.4
  },
  "luminance": 0.19845
}

Semantic roles & 50–950 ramp

primary
#7D8013
secondary
#3D39B5
accent
#37F13C
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8013

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

Preview Lab → · Contrast checker → · Palette generator →

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