#7D8E1C#7D8E1C

#7D8E1C is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.133 H 118.2°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7D8E1C
RGBrgb(125, 142, 28)
HSLhsl(69, 67%, 33%)
HSVhsv(69, 80%, 56%)
CMYKcmyk(12%, 0%, 80.3%, 44.3%)
CIE-LABlab(55.88, -20.88, 53.65)
CIE-LCHlch(55.88, 57.57, 111.27°)
OKLaboklab(61.25% -0.0629 0.1173)
OKLCHoklch(61.25% 0.133 118.2)
XYZxyz(18.3405, 23.7900, 4.7241)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8E1C #2D1C8E
analogous
#8E661C #7D8E1C #448E1C
triadic
#7D8E1C #1C7D8E #8E1C7D
tetradic
#7D8E1C #1C8E66 #2D1C8E #8E1C44
square
#7D8E1C #1C8E66 #2D1C8E #8E1C44
split-complementary
#7D8E1C #1C448E #661C8E
monochromatic
#232808 #505B12 #7D8E1C #AAC126 #C5DB49

Accessibility & contrast

On white

3.65
#7D8E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#7D8E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8E1C
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8E1C#FFFFFF#000000##000000
##7D8E1C1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#858679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7d8e1c;
/* rgb */ color: rgb(125, 142, 28);
/* oklch */ color: oklch(61.3% 0.133 118.2);
Tailwind
colors: {
  custom: {
    50: '#a6af63',
    500: '#7d8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #7d8e1c;
$custom-light: #a6af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8e1c",
  "rgb": {
    "r": 125,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 68.947,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.6125,
    "c": 0.13308,
    "h": 118.2
  },
  "luminance": 0.2379
}

Semantic roles & 50–950 ramp

primary
#7D8E1C
secondary
#5A49BD
accent
#3EEA58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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