#7D8B18#7D8B18

#7D8B18 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.132 H 116.9°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7D8B18
RGBrgb(125, 139, 24)
HSLhsl(67, 71%, 32%)
HSVhsv(67, 83%, 55%)
CMYKcmyk(10.1%, 0%, 82.7%, 45.5%)
CIE-LABlab(54.96, -19.50, 54.02)
CIE-LCHlch(54.96, 57.43, 109.85°)
OKLaboklab(60.51% -0.0594 0.1174)
OKLCHoklch(60.51% 0.132 116.9)
XYZxyz(17.8554, 22.8914, 4.3418)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B18 #26188B
analogous
#8B5F18 #7D8B18 #448B18
triadic
#7D8B18 #187D8B #8B187D
tetradic
#7D8B18 #188B5F #26188B #8B1844
square
#7D8B18 #188B5F #26188B #8B1844
split-complementary
#7D8B18 #18448B #5F188B
monochromatic
#1F2306 #4E570F #7D8B18 #ACBF21 #CBDE3F

Accessibility & contrast

On white

3.76
#7D8B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7D8B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8B18
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8B18#FFFFFF#000000##000000
##7D8B181.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948424
Tritanopia (blue-blind)
#858376
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8b18;
/* rgb */ color: rgb(125, 139, 24);
/* oklch */ color: oklch(60.5% 0.132 116.9);
Tailwind
colors: {
  custom: {
    50: '#a6ac61',
    500: '#7d8b18',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b18;
$custom-light: #a6ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b18",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 67.304,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60507,
    "c": 0.13153,
    "h": 116.9
  },
  "luminance": 0.22891
}

Semantic roles & 50–950 ramp

primary
#7D8B18
secondary
#5040BE
accent
#3AED50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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