#A1B418#A1B418

#A1B418 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.0% C 0.163 H 117.2°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#A1B418
RGBrgb(161, 180, 24)
HSLhsl(67, 76%, 40%)
HSVhsv(67, 87%, 71%)
CMYKcmyk(10.6%, 0%, 86.7%, 29.4%)
CIE-LABlab(69.67, -24.42, 67.60)
CIE-LCHlch(69.67, 71.88, 109.86°)
OKLaboklab(73.02% -0.0747 0.1452)
OKLCHoklch(73.02% 0.163 117.2)
XYZxyz(31.1849, 40.2859, 6.9971)
Luminance0.4029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B418 #2B18B4
analogous
#B47918 #A1B418 #53B418
triadic
#A1B418 #18A1B4 #B418A1
tetradic
#A1B418 #18B479 #2B18B4 #B41853
square
#A1B418 #18B479 #2B18B4 #B41853
split-complementary
#A1B418 #1853B4 #7918B4
monochromatic
#40480A #717E11 #A1B418 #CBE227 #D8E95D

Accessibility & contrast

On white

2.32
#A1B418 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#A1B418 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B418
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B418#FFFFFF#000000##000000
##A1B4181.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#BFAB2B
Tritanopia (blue-blind)
#ACA999
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a1b418;
/* rgb */ color: rgb(161, 180, 24);
/* oklch */ color: oklch(73.0% 0.163 117.2);
Tailwind
colors: {
  custom: {
    50: '#c1ca68',
    500: '#a1b418',
    950: '#000000',
  },
}
SCSS
$custom: #a1b418;
$custom-light: #c1ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b418",
  "rgb": {
    "r": 161,
    "g": 180,
    "b": 24
  },
  "hsl": {
    "h": 67.308,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.73024,
    "c": 0.16331,
    "h": 117.2
  },
  "luminance": 0.40286
}

Semantic roles & 50–950 ramp

primary
#A1B418
secondary
#695BCD
accent
#35F34C
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B418

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

Preview Lab → · Contrast checker → · Palette generator →

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