#7C8F12#7C8F12

#7C8F12 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.4% C 0.139 H 118.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7C8F12
RGBrgb(124, 143, 18)
HSLhsl(69, 78%, 32%)
HSVhsv(69, 87%, 56%)
CMYKcmyk(13.3%, 0%, 87.4%, 43.9%)
CIE-LABlab(56.06, -22.19, 56.46)
CIE-LCHlch(56.06, 60.66, 111.45°)
OKLaboklab(61.37% -0.0671 0.1216)
OKLCHoklch(61.37% 0.139 118.9)
XYZxyz(18.2443, 23.9738, 4.2384)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F12 #25128F
analogous
#8F6412 #7C8F12 #3E8F12
triadic
#7C8F12 #127C8F #8F127C
tetradic
#7C8F12 #128F64 #25128F #8F123E
square
#7C8F12 #128F64 #25128F #8F123E
split-complementary
#7C8F12 #123E8F #64128F
monochromatic
#1E2204 #4D590B #7C8F12 #ABC519 #CBE636

Accessibility & contrast

On white

3.62
#7C8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#7C8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F12
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F12#FFFFFF#000000##000000
##7C8F121.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978721
Tritanopia (blue-blind)
#848779
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8f12;
/* rgb */ color: rgb(124, 143, 18);
/* oklch */ color: oklch(61.4% 0.139 118.9);
Tailwind
colors: {
  custom: {
    50: '#a6af60',
    500: '#7c8f12',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f12;
$custom-light: #a6af60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f12",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 69.12,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61367,
    "c": 0.13891,
    "h": 118.9
  },
  "luminance": 0.23974
}

Semantic roles & 50–950 ramp

primary
#7C8F12
secondary
#4F3AC3
accent
#34F451
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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