#A8B318#A8B318

#A8B318 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.4% C 0.160 H 114.2°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#A8B318
RGBrgb(168, 179, 24)
HSLhsl(64, 76%, 40%)
HSVhsv(64, 87%, 70%)
CMYKcmyk(6.1%, 0%, 86.6%, 29.8%)
CIE-LABlab(69.92, -20.93, 68.02)
CIE-LCHlch(69.92, 71.17, 107.10°)
OKLaboklab(73.35% -0.0655 0.1458)
OKLCHoklch(73.35% 0.16 114.2)
XYZxyz(32.4345, 40.6317, 6.9981)
Luminance0.4063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B318 #2318B3
analogous
#B37118 #A8B318 #5BB318
triadic
#A8B318 #18A8B3 #B318A8
tetradic
#A8B318 #18B371 #2318B3 #B3185B
square
#A8B318 #18B371 #2318B3 #B3185B
split-complementary
#A8B318 #185BB3 #7118B3
monochromatic
#43470A #757D11 #A8B318 #D5E226 #DFE95C

Accessibility & contrast

On white

2.30
#A8B318 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#A8B318 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B318
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B318#FFFFFF#000000##000000
##A8B3181.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C0AC2A
Tritanopia (blue-blind)
#B4A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a8b318;
/* rgb */ color: rgb(168, 179, 24);
/* oklch */ color: oklch(73.4% 0.160 114.2);
Tailwind
colors: {
  custom: {
    50: '#c6c968',
    500: '#a8b318',
    950: '#000000',
  },
}
SCSS
$custom: #a8b318;
$custom-light: #c6c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b318",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 24
  },
  "hsl": {
    "h": 64.258,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.73352,
    "c": 0.15984,
    "h": 114.2
  },
  "luminance": 0.40631
}

Semantic roles & 50–950 ramp

primary
#A8B318
secondary
#625ACD
accent
#35F342
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #A8B318

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

Preview Lab → · Contrast checker → · Palette generator →

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