#AFAF34#AFAF34

#AFAF34 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.141 H 109.4°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#AFAF34
RGBrgb(175, 175, 52)
HSLhsl(60, 54%, 45%)
HSVhsv(60, 70%, 69%)
CMYKcmyk(0%, 0%, 70.3%, 31.4%)
CIE-LABlab(69.49, -14.83, 59.62)
CIE-LCHlch(69.49, 61.44, 103.97°)
OKLaboklab(73.19% -0.0467 0.1325)
OKLCHoklch(73.19% 0.141 109.4)
XYZxyz(33.6302, 40.0228, 9.2018)
Luminance0.4002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF34 #3434AF
analogous
#AF7234 #AFAF34 #72AF34
triadic
#AFAF34 #34AFAF #AF34AF
tetradic
#AFAF34 #34AF72 #3434AF #AF3472
square
#AFAF34 #34AF72 #3434AF #AF3472
split-complementary
#AFAF34 #3472AF #7234AF
monochromatic
#515118 #808026 #AFAF34 #CCCC54 #DADA83

Accessibility & contrast

On white

2.33
#AFAF34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#AFAF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF34
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF34#FFFFFF#000000##000000
##AFAF341.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA81F
Deuteranopia (green-blind)
#BFAC3D
Tritanopia (blue-blind)
#BBA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf34;
/* rgb */ color: rgb(175, 175, 52);
/* oklch */ color: oklch(73.2% 0.141 109.4);
Tailwind
colors: {
  custom: {
    50: '#cac674',
    500: '#afaf34',
    950: '#000000',
  },
}
SCSS
$custom: #afaf34;
$custom-light: #cac674;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf34",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 60,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73185,
    "c": 0.14051,
    "h": 109.4
  },
  "luminance": 0.40022
}

Semantic roles & 50–950 ramp

primary
#AFAF34
secondary
#7B7BC4
accent
#4ADE4A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFAF34

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

Preview Lab → · Contrast checker → · Palette generator →

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