#A7B418#A7B418

#A7B418 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.5% C 0.161 H 114.9°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#A7B418
RGBrgb(167, 180, 24)
HSLhsl(65, 76%, 40%)
HSVhsv(65, 87%, 71%)
CMYKcmyk(7.2%, 0%, 86.7%, 29.4%)
CIE-LABlab(70.12, -21.86, 68.16)
CIE-LCHlch(70.12, 71.58, 107.78°)
OKLaboklab(73.5% -0.068 0.1462)
OKLCHoklch(73.5% 0.161 114.9)
XYZxyz(32.4235, 40.9246, 7.0552)
Luminance0.4092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B418 #2518B4
analogous
#B47318 #A7B418 #59B418
triadic
#A7B418 #18A7B4 #B418A7
tetradic
#A7B418 #18B473 #2518B4 #B41859
square
#A7B418 #18B473 #2518B4 #B41859
split-complementary
#A7B418 #1859B4 #7318B4
monochromatic
#43480A #757E11 #A7B418 #D3E227 #DEE95D

Accessibility & contrast

On white

2.29
#A7B418 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#A7B418 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B418
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B418#FFFFFF#000000##000000
##A7B4181.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AA00
Deuteranopia (green-blind)
#C1AD2B
Tritanopia (blue-blind)
#B3A999
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a7b418;
/* rgb */ color: rgb(167, 180, 24);
/* oklch */ color: oklch(73.5% 0.161 114.9);
Tailwind
colors: {
  custom: {
    50: '#c5ca68',
    500: '#a7b418',
    950: '#000000',
  },
}
SCSS
$custom: #a7b418;
$custom-light: #c5ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b418",
  "rgb": {
    "r": 167,
    "g": 180,
    "b": 24
  },
  "hsl": {
    "h": 65,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.73498,
    "c": 0.1612,
    "h": 114.9
  },
  "luminance": 0.40924
}

Semantic roles & 50–950 ramp

primary
#A7B418
secondary
#645BCD
accent
#35F345
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B418

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

Preview Lab → · Contrast checker → · Palette generator →

#A7B418 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva