#AFA530#AFA530

#AFA530 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.0% C 0.133 H 104.4°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA530
RGBrgb(175, 165, 48)
HSLhsl(55, 57%, 44%)
HSVhsv(55, 73%, 69%)
CMYKcmyk(0%, 5.7%, 72.6%, 31.4%)
CIE-LABlab(66.70, -9.84, 58.40)
CIE-LCHlch(66.70, 59.22, 99.57°)
OKLaboklab(70.96% -0.0331 0.1292)
OKLCHoklch(70.96% 0.133 104.4)
XYZxyz(31.6692, 36.2389, 8.1224)
Luminance0.3624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA530 #303AAF
analogous
#AF6530 #AFA530 #79AF30
triadic
#AFA530 #30AFA5 #A530AF
tetradic
#AFA530 #30AF65 #303AAF #AF3079
square
#AFA530 #30AF65 #303AAF #AF3079
split-complementary
#AFA530 #3079AF #6530AF
monochromatic
#4F4A16 #7F7823 #AFA530 #CEC44E #DCD47E

Accessibility & contrast

On white

2.55
#AFA530 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#AFA530 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA530
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA530#FFFFFF#000000##000000
##AFA5301.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1C
Deuteranopia (green-blind)
#B7A538
Tritanopia (blue-blind)
#BC9A8E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa530;
/* rgb */ color: rgb(175, 165, 48);
/* oklch */ color: oklch(71.0% 0.133 104.4);
Tailwind
colors: {
  custom: {
    50: '#cabf71',
    500: '#afa530',
    950: '#000000',
  },
}
SCSS
$custom: #afa530;
$custom-light: #cabf71;
$custom-dark: #000000;
JSON
{
  "hex": "#afa530",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 48
  },
  "hsl": {
    "h": 55.276,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70958,
    "c": 0.13338,
    "h": 104.4
  },
  "luminance": 0.36238
}

Semantic roles & 50–950 ramp

primary
#AFA530
secondary
#767DC4
accent
#54E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA530

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

Preview Lab → · Contrast checker → · Palette generator →

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