#7A8012#7A8012

#7A8012 is a mid, vivid yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.123 H 113.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7A8012
RGBrgb(122, 128, 18)
HSLhsl(63, 75%, 29%)
HSVhsv(63, 86%, 50%)
CMYKcmyk(4.7%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.40, -15.30, 52.48)
CIE-LCHlch(51.40, 54.66, 106.25°)
OKLaboklab(57.58% -0.0481 0.1131)
OKLCHoklch(57.58% 0.123 113)
XYZxyz(15.8549, 19.6200, 3.5240)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8012 #181280
analogous
#804F12 #7A8012 #438012
triadic
#7A8012 #127A80 #80127A
tetradic
#7A8012 #12804F #181280 #801243
square
#7A8012 #12804F #181280 #801243
split-complementary
#7A8012 #124380 #4F1280
monochromatic
#1A1B04 #474A0A #7A8012 #ADB61A #D7E12B

Accessibility & contrast

On white

4.26
#7A8012 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7A8012 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8012
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8012#FFFFFF#000000##000000
##7A80121.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7C1E
Tritanopia (blue-blind)
#83786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7a8012;
/* rgb */ color: rgb(122, 128, 18);
/* oklch */ color: oklch(57.6% 0.123 113.0);
Tailwind
colors: {
  custom: {
    50: '#a4a45d',
    500: '#7a8012',
    950: '#000000',
  },
}
SCSS
$custom: #7a8012;
$custom-light: #a4a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8012",
  "rgb": {
    "r": 122,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 63.273,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57585,
    "c": 0.12288,
    "h": 113
  },
  "luminance": 0.1962
}

Semantic roles & 50–950 ramp

primary
#7A8012
secondary
#3F38B6
accent
#36F240
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7A8012

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

Preview Lab → · Contrast checker → · Palette generator →

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