#7D8F15#7D8F15

#7D8F15 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.5% C 0.137 H 118.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7D8F15
RGBrgb(125, 143, 21)
HSLhsl(69, 74%, 32%)
HSVhsv(69, 85%, 56%)
CMYKcmyk(12.6%, 0%, 85.3%, 43.9%)
CIE-LABlab(56.15, -21.65, 55.85)
CIE-LCHlch(56.15, 59.90, 111.19°)
OKLaboklab(61.46% -0.0655 0.1208)
OKLCHoklch(61.46% 0.137 118.5)
XYZxyz(18.4157, 24.0592, 4.3831)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F15 #27158F
analogous
#8F6415 #7D8F15 #408F15
triadic
#7D8F15 #157D8F #8F157D
tetradic
#7D8F15 #158F64 #27158F #8F1540
square
#7D8F15 #158F64 #27158F #8F1540
split-complementary
#7D8F15 #15408F #64158F
monochromatic
#202405 #4E5A0D #7D8F15 #ACC41D #CAE23C

Accessibility & contrast

On white

3.61
#7D8F15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#7D8F15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8F15
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8F15#FFFFFF#000000##000000
##7D8F151.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#85877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7d8f15;
/* rgb */ color: rgb(125, 143, 21);
/* oklch */ color: oklch(61.5% 0.137 118.5);
Tailwind
colors: {
  custom: {
    50: '#a6af61',
    500: '#7d8f15',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f15;
$custom-light: #a6af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f15",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 21
  },
  "hsl": {
    "h": 68.852,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61458,
    "c": 0.13738,
    "h": 118.5
  },
  "luminance": 0.24059
}

Semantic roles & 50–950 ramp

primary
#7D8F15
secondary
#513EC2
accent
#37F152
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8F15

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

Preview Lab → · Contrast checker → · Palette generator →

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