#AFAD34#AFAD34

#AFAD34 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.7% C 0.138 H 108.5°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#AFAD34
RGBrgb(175, 173, 52)
HSLhsl(59, 54%, 45%)
HSVhsv(59, 70%, 69%)
CMYKcmyk(0%, 1.1%, 70.3%, 31.4%)
CIE-LABlab(68.93, -13.80, 59.08)
CIE-LCHlch(68.93, 60.67, 103.15°)
OKLaboklab(72.74% -0.0438 0.1314)
OKLCHoklch(72.74% 0.138 108.5)
XYZxyz(33.2438, 39.2501, 9.0730)
Luminance0.3925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD34 #3436AF
analogous
#AF6F34 #AFAD34 #74AF34
triadic
#AFAD34 #34AFAD #AD34AF
tetradic
#AFAD34 #34AF6F #3436AF #AF3474
square
#AFAD34 #34AF6F #3436AF #AF3474
split-complementary
#AFAD34 #3474AF #6F34AF
monochromatic
#515018 #807E26 #AFAD34 #CCCA54 #DAD983

Accessibility & contrast

On white

2.37
#AFAD34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#AFAD34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD34
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD34#FFFFFF#000000##000000
##AFAD341.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA620
Deuteranopia (green-blind)
#BDAA3D
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad34;
/* rgb */ color: rgb(175, 173, 52);
/* oklch */ color: oklch(72.7% 0.138 108.5);
Tailwind
colors: {
  custom: {
    50: '#cac573',
    500: '#afad34',
    950: '#000000',
  },
}
SCSS
$custom: #afad34;
$custom-light: #cac573;
$custom-dark: #000000;
JSON
{
  "hex": "#afad34",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 52
  },
  "hsl": {
    "h": 59.024,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72743,
    "c": 0.13849,
    "h": 108.5
  },
  "luminance": 0.39249
}

Semantic roles & 50–950 ramp

primary
#AFAD34
secondary
#7B7CC4
accent
#4DDE4A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAD34

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

Preview Lab → · Contrast checker → · Palette generator →

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