#7D8F1F#7D8F1F

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

Color values

HEX#7D8F1F
RGBrgb(125, 143, 31)
HSLhsl(70, 64%, 34%)
HSVhsv(70, 78%, 56%)
CMYKcmyk(12.6%, 0%, 78.3%, 43.9%)
CIE-LABlab(56.19, -21.26, 52.98)
CIE-LCHlch(56.19, 57.09, 111.87°)
OKLaboklab(61.51% -0.0637 0.1164)
OKLCHoklch(61.51% 0.133 118.7)
XYZxyz(18.5276, 24.1040, 4.9725)
Luminance0.2410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F1F #311F8F
analogous
#8F691F #7D8F1F #458F1F
triadic
#7D8F1F #1F7D8F #8F1F7D
tetradic
#7D8F1F #1F8F69 #311F8F #8F1F45
square
#7D8F1F #1F8F69 #311F8F #8F1F45
split-complementary
#7D8F1F #1F458F #691F8F
monochromatic
#252A09 #515D14 #7D8F1F #A9C12A #C3D94F

Accessibility & contrast

On white

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

On black

5.82
#7D8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8F1F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8F1F#FFFFFF#000000##000000
##7D8F1F1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8f1f;
/* rgb */ color: rgb(125, 143, 31);
/* oklch */ color: oklch(61.5% 0.133 118.7);
Tailwind
colors: {
  custom: {
    50: '#a6af65',
    500: '#7d8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f1f;
$custom-light: #a6af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f1f",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 69.643,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61508,
    "c": 0.13269,
    "h": 118.7
  },
  "luminance": 0.24104
}

Semantic roles & 50–950 ramp

primary
#7D8F1F
secondary
#604EBC
accent
#40E75B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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