#AFB318#AFB318

#AFB318 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 73.9% C 0.158 H 111.3°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#AFB318
RGBrgb(175, 179, 24)
HSLhsl(62, 76%, 40%)
HSVhsv(62, 87%, 70%)
CMYKcmyk(2.2%, 0%, 86.6%, 29.8%)
CIE-LABlab(70.47, -17.90, 68.70)
CIE-LCHlch(70.47, 70.99, 104.60°)
OKLaboklab(73.93% -0.0574 0.147)
OKLCHoklch(73.93% 0.158 111.3)
XYZxyz(33.9654, 41.4211, 7.0698)
Luminance0.4142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB318 #1C18B3
analogous
#B36918 #AFB318 #62B318
triadic
#AFB318 #18AFB3 #B318AF
tetradic
#AFB318 #18B369 #1C18B3 #B31862
square
#AFB318 #18B369 #1C18B3 #B31862
split-complementary
#AFB318 #1862B3 #6918B3
monochromatic
#45470A #7A7D11 #AFB318 #DDE226 #E6E95C

Accessibility & contrast

On white

2.26
#AFB318 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#AFB318 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB318
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB318#FFFFFF#000000##000000
##AFB3181.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AA00
Deuteranopia (green-blind)
#C3AE2A
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb318;
/* rgb */ color: rgb(175, 179, 24);
/* oklch */ color: oklch(73.9% 0.158 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc968',
    500: '#afb318',
    950: '#000000',
  },
}
SCSS
$custom: #afb318;
$custom-light: #cbc968;
$custom-dark: #000000;
JSON
{
  "hex": "#afb318",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 24
  },
  "hsl": {
    "h": 61.548,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.73931,
    "c": 0.15781,
    "h": 111.3
  },
  "luminance": 0.4142
}

Semantic roles & 50–950 ramp

primary
#AFB318
secondary
#5D5ACD
accent
#35F33A
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB318

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

Preview Lab → · Contrast checker → · Palette generator →

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