#7D8A18#7D8A18

#7D8A18 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.130 H 116.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7D8A18
RGBrgb(125, 138, 24)
HSLhsl(67, 70%, 32%)
HSVhsv(67, 83%, 54%)
CMYKcmyk(9.4%, 0%, 82.6%, 45.9%)
CIE-LABlab(54.66, -18.99, 53.75)
CIE-LCHlch(54.66, 57.01, 109.45°)
OKLaboklab(60.27% -0.058 0.1168)
OKLCHoklch(60.27% 0.13 116.4)
XYZxyz(17.7113, 22.6031, 4.2938)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A18 #25188A
analogous
#8A5E18 #7D8A18 #448A18
triadic
#7D8A18 #187D8A #8A187D
tetradic
#7D8A18 #188A5E #25188A #8A1844
square
#7D8A18 #188A5E #25188A #8A1844
split-complementary
#7D8A18 #18448A #5E188A
monochromatic
#1F2206 #4E560F #7D8A18 #ACBE21 #CBDE3F

Accessibility & contrast

On white

3.80
#7D8A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7D8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A18
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A18#FFFFFF#000000##000000
##7D8A181.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938324
Tritanopia (blue-blind)
#858275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a18;
/* rgb */ color: rgb(125, 138, 24);
/* oklch */ color: oklch(60.3% 0.130 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac61',
    500: '#7d8a18',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a18;
$custom-light: #a6ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a18",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 66.842,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60267,
    "c": 0.13039,
    "h": 116.4
  },
  "luminance": 0.22603
}

Semantic roles & 50–950 ramp

primary
#7D8A18
secondary
#4F40BD
accent
#3BED4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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