#AFA634#AFA634

#AFA634 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.2% C 0.132 H 104.8°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#AFA634
RGBrgb(175, 166, 52)
HSLhsl(56, 54%, 45%)
HSVhsv(56, 70%, 69%)
CMYKcmyk(0%, 5.1%, 70.3%, 31.4%)
CIE-LABlab(67.00, -10.16, 57.17)
CIE-LCHlch(67.00, 58.07, 100.08°)
OKLaboklab(71.21% -0.0336 0.1274)
OKLCHoklch(71.21% 0.132 104.8)
XYZxyz(31.9365, 36.6355, 8.6373)
Luminance0.3663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA634 #343DAF
analogous
#AF6934 #AFA634 #7BAF34
triadic
#AFA634 #34AFA6 #A634AF
tetradic
#AFA634 #34AF69 #343DAF #AF347B
square
#AFA634 #34AF69 #343DAF #AF347B
split-complementary
#AFA634 #347BAF #6934AF
monochromatic
#514C18 #807926 #AFA634 #CCC354 #DAD483

Accessibility & contrast

On white

2.52
#AFA634 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#AFA634 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA634
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA634#FFFFFF#000000##000000
##AFA6341.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A022
Deuteranopia (green-blind)
#B8A53C
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa634;
/* rgb */ color: rgb(175, 166, 52);
/* oklch */ color: oklch(71.2% 0.132 104.8);
Tailwind
colors: {
  custom: {
    50: '#cac073',
    500: '#afa634',
    950: '#000000',
  },
}
SCSS
$custom: #afa634;
$custom-light: #cac073;
$custom-dark: #000000;
JSON
{
  "hex": "#afa634",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 52
  },
  "hsl": {
    "h": 55.61,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71205,
    "c": 0.13171,
    "h": 104.8
  },
  "luminance": 0.36634
}

Semantic roles & 50–950 ramp

primary
#AFA634
secondary
#7B80C4
accent
#55DE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA634

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

Preview Lab → · Contrast checker → · Palette generator →

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