#AFB935#AFB935

#AFB935 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.4% C 0.150 H 113.8°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#AFB935
RGBrgb(175, 185, 53)
HSLhsl(65, 55%, 47%)
HSVhsv(65, 71%, 73%)
CMYKcmyk(5.4%, 0%, 71.4%, 27.5%)
CIE-LABlab(72.28, -19.83, 61.98)
CIE-LCHlch(72.28, 65.08, 107.75°)
OKLaboklab(75.42% -0.0606 0.1377)
OKLCHoklch(75.42% 0.15 113.8)
XYZxyz(35.6718, 44.0696, 9.9946)
Luminance0.4407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB935 #3F35B9
analogous
#B98135 #AFB935 #6DB935
triadic
#AFB935 #35AFB9 #B935AF
tetradic
#AFB935 #35B981 #3F35B9 #B9356D
square
#AFB935 #35B981 #3F35B9 #B9356D
split-complementary
#AFB935 #356DB9 #8135B9
monochromatic
#555A1A #828927 #AFB935 #C7D05B #D7DE8B

Accessibility & contrast

On white

2.14
#AFB935 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.81
#AFB935 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB935
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB935#FFFFFF#000000##000000
##AFB9351.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B01D
Deuteranopia (green-blind)
#C6B33F
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb935;
/* rgb */ color: rgb(175, 185, 53);
/* oklch */ color: oklch(75.4% 0.150 113.8);
Tailwind
colors: {
  custom: {
    50: '#cacd75',
    500: '#afb935',
    950: '#000000',
  },
}
SCSS
$custom: #afb935;
$custom-light: #cacd75;
$custom-dark: #000000;
JSON
{
  "hex": "#afb935",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 53
  },
  "hsl": {
    "h": 64.545,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.75418,
    "c": 0.15041,
    "h": 113.8
  },
  "luminance": 0.44069
}

Semantic roles & 50–950 ramp

primary
#AFB935
secondary
#8782C8
accent
#49DF54
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB935

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

Preview Lab → · Contrast checker → · Palette generator →

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