#AFB023#AFB023

#AFB023 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.151 H 110.0°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFB023
RGBrgb(175, 176, 35)
HSLhsl(60, 67%, 41%)
HSVhsv(60, 80%, 69%)
CMYKcmyk(0.6%, 0%, 80.1%, 31%)
CIE-LABlab(69.67, -16.06, 65.36)
CIE-LCHlch(69.67, 67.31, 103.81°)
OKLaboklab(73.31% -0.0516 0.1416)
OKLCHoklch(73.31% 0.151 110)
XYZxyz(33.5092, 40.2870, 7.6008)
Luminance0.4029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB023 #2423B0
analogous
#B06B23 #AFB023 #69B023
triadic
#AFB023 #23AFB0 #B023AF
tetradic
#AFB023 #23B06B #2423B0 #B02369
square
#AFB023 #23B06B #2423B0 #B02369
split-complementary
#AFB023 #2369B0 #6B23B0
monochromatic
#494A0F #7C7D19 #AFB023 #D6D839 #E1E26C

Accessibility & contrast

On white

2.32
#AFB023 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AFB023 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB023
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB023#FFFFFF#000000##000000
##AFB0231.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#C0AC30
Tritanopia (blue-blind)
#BCA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb023;
/* rgb */ color: rgb(175, 176, 35);
/* oklch */ color: oklch(73.3% 0.151 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc76c',
    500: '#afb023',
    950: '#000000',
  },
}
SCSS
$custom: #afb023;
$custom-light: #cbc76c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb023",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 35
  },
  "hsl": {
    "h": 60.426,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.73306,
    "c": 0.15074,
    "h": 110
  },
  "luminance": 0.40286
}

Semantic roles & 50–950 ramp

primary
#AFB023
secondary
#6867C8
accent
#3EEA3F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #AFB023

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

Preview Lab → · Contrast checker → · Palette generator →

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