#A2B418#A2B418

#A2B418 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.1% C 0.163 H 116.8°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#A2B418
RGBrgb(162, 180, 24)
HSLhsl(67, 76%, 40%)
HSVhsv(67, 87%, 71%)
CMYKcmyk(10%, 0%, 86.7%, 29.4%)
CIE-LABlab(69.75, -24.00, 67.69)
CIE-LCHlch(69.75, 71.82, 109.52°)
OKLaboklab(73.1% -0.0736 0.1454)
OKLCHoklch(73.1% 0.163 116.8)
XYZxyz(31.3873, 40.3903, 7.0066)
Luminance0.4039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B418 #2A18B4
analogous
#B47818 #A2B418 #54B418
triadic
#A2B418 #18A2B4 #B418A2
tetradic
#A2B418 #18B478 #2A18B4 #B41854
square
#A2B418 #18B478 #2A18B4 #B41854
split-complementary
#A2B418 #1854B4 #7818B4
monochromatic
#41480A #717E11 #A2B418 #CDE227 #D9E95D

Accessibility & contrast

On white

2.31
#A2B418 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#A2B418 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B418
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B418#FFFFFF#000000##000000
##A2B4181.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2b418;
/* rgb */ color: rgb(162, 180, 24);
/* oklch */ color: oklch(73.1% 0.163 116.8);
Tailwind
colors: {
  custom: {
    50: '#c2ca68',
    500: '#a2b418',
    950: '#000000',
  },
}
SCSS
$custom: #a2b418;
$custom-light: #c2ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b418",
  "rgb": {
    "r": 162,
    "g": 180,
    "b": 24
  },
  "hsl": {
    "h": 66.923,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.73102,
    "c": 0.16294,
    "h": 116.8
  },
  "luminance": 0.4039
}

Semantic roles & 50–950 ramp

primary
#A2B418
secondary
#685BCD
accent
#35F34B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B418

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

Preview Lab → · Contrast checker → · Palette generator →

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