#7A8B1C#7A8B1C

#7A8B1C is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.3% C 0.131 H 118.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7A8B1C
RGBrgb(122, 139, 28)
HSLhsl(69, 66%, 33%)
HSVhsv(69, 80%, 55%)
CMYKcmyk(12.2%, 0%, 79.9%, 45.5%)
CIE-LABlab(54.75, -20.67, 52.54)
CIE-LCHlch(54.75, 56.46, 111.48°)
OKLaboklab(60.28% -0.0621 0.115)
OKLCHoklch(60.28% 0.131 118.4)
XYZxyz(17.4687, 22.6868, 4.5571)
Luminance0.2269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8B1C #2D1C8B
analogous
#8B641C #7A8B1C #438B1C
triadic
#7A8B1C #1C7A8B #8B1C7A
tetradic
#7A8B1C #1C8B64 #2D1C8B #8B1C43
square
#7A8B1C #1C8B64 #2D1C8B #8B1C43
split-complementary
#7A8B1C #1C438B #641C8B
monochromatic
#212507 #4D5812 #7A8B1C #A7BE26 #C4DA47

Accessibility & contrast

On white

3.79
#7A8B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7A8B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8B1C
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8B1C#FFFFFF#000000##000000
##7A8B1C1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938327
Tritanopia (blue-blind)
#828377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7a8b1c;
/* rgb */ color: rgb(122, 139, 28);
/* oklch */ color: oklch(60.3% 0.131 118.4);
Tailwind
colors: {
  custom: {
    50: '#a4ac63',
    500: '#7a8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #7a8b1c;
$custom-light: #a4ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8b1c",
  "rgb": {
    "r": 122,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 69.189,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60284,
    "c": 0.13075,
    "h": 118.4
  },
  "luminance": 0.22687
}

Semantic roles & 50–950 ramp

primary
#7A8B1C
secondary
#5947BC
accent
#3EE959
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7A8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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